Script VB

AnonymousAnonymous Guest Posts: 137
Hello,

I want to run a script VB : MyFile.vbs and i used
SHELL('C:\MyFile.vbs');
but my file vbs don't run.

Thank

Comments

  • wakestarwakestar Member Posts: 207
    SHELL('c:\windows\system32\cmd.exe /C','c:\test.vbs');
  • jorgebragajorgebraga Member Posts: 25
    Thats not a good solution since the OS may not be in c:\windows.
  • Morten_SolbergMorten_Solberg Member Posts: 24
    try this one.. :

    HYPERLINK('C:\MyFile.vbs');


    or this..:

    SHELL('wscript C:\MyFile.vbs');
  • DenSterDenSter Member Posts: 8,307
    If the OS is not in the WINDOWS folder, won't this work either then:
    SHELL('cmd.exe /C','c:\test.vbs');

    When you do Start/run you can just type 'cmd' and that runs the command prompt, so it knows where to find it.
  • jorgebragajorgebraga Member Posts: 25
    Yes it works fine.
    Good tip.
    But dont use C drive to write anything. The local user may not have permission to do that.
Sign In or Register to comment.