/build/static/layout/Breadcrumb_cap_w.png

exe not running with vbscript

one of the exe suppose(c:\Program Files\abcd\123.exe). it will run when we will double click on the exe. but not rnning with vbscript.

error : the sysstem can not find the file specified

code : 80070002

 

notepad.exe is working instead of 123.exe. any suggestion ...


2 Comments   [ + ] Show comments
  • Windows 7? Is it prompting for UAC, if your supressing it, you might not see the UAC prompt. - rileyz 10 years ago
  • Looks like a problem in the executable path in vbscript.. - dj_xest 10 years ago

Answers (2)

Posted by: anonymous_9363 10 years ago
Red Belt
5

Clue: Your executable path has a space in it...

Posted by: ekgcorp 10 years ago
10th Degree Black Belt
2

VBScab is right.. Put some Quotes "" "around your path".. Otherwise the path = C:\Program and not C:\Program Files\abcd\123.exe


Comments:
  • Try something like

    pathStr = Chr(34) & "C:\Program Files\abcd\123.exe" & Chr(34)

    and run pathStr to have the quotation marks where they belong.
    I usually include those quotation marks by default since they don't disturbe even when they are not needed (in paths with no spaces). - chrpetri 10 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ