Windows Scripting Host Run method fails - HELP! 
Author Message
 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



Sun, 26 Oct 2003 03:45:11 GMT  
 Windows Scripting Host Run method fails - HELP!
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



Sun, 26 Oct 2003 03:25:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Windows Scripting Host Run method fails - HELP!

2. Windows Script Host to Execute Remote Script Q311269

3. Windows Script Host Shell Object (Malacious script detected)

4. Windows scripting host - Checking a service in Windows NT 4

5. Windows 95 OSR1 and Windows Scripting Host

6. Can't register Windows Scripting Host with Windows 7

7. please help in writing errors for testing windows scripting host with vbscript tests

8. Need Help!! - VBScript with Windows Scripting Host (WSH)

9. HELP!!! VBScript with Windows Scripting Host (WSH)

10. Windows Scripting Host (WSH)

11. WSH: Windows Script Host news group?

12. Windows scripting host

 

 
Powered by phpBB® Forum Software