
Windows Scripting Host Run method fails - HELP!
Hey! Figured it out (FYI)
Turns out on the target machine the app was installing
under the "Program Files" folder (as designed). Note
the space in the path!
Added a double-quote Chr(34) at the beginning and
end of my Run parameter and now it works great.
Thanks anyway - hope this helps somebody else out.
- Morgan Leppink
Quote:
> Hi gurus:
> I have developed a VB6 application that uses
> WSH to launch child processes using the
> Run method. This works perfectly on my
> development machine, but when I install on
> another machine, the Run method fails. I
> can create the object OK with
> Set wsh = CreateObject("WScript.Shell")
> but I get an error when I use the Run method.
> I KNOW that the EXE I am trying to launch
> exists on that machine.
> I read a KB article about having to install the
> WSH manually using the self-extracting EXE,
> which I have done, but still no cigar.
> Anybody have any ideas?
> Thanks,
> Morgan Leppink