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. String length limit on Windows Scripting Host Run method

2. Research: Windows Script Host or Windows Scripting Host

3. Problems Installing Windows Script 5.0 and Windows Script Host 2.0 Beta on Windows NT 4.0

4. Help with running Windows Scriptiing Host

5. Running programs from a HTA (without Windows Scripting Host)

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

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

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

9. Windows scripting host Help please

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

11. Windows Scripting Host on Windows 95 OSR2

12. Windows 95 OSR1 and Windows Scripting Host

 

 
Powered by phpBB® Forum Software