Hi,
I tried using the following Windows Script code but it is giving me problems:
Set WiSh=CreateObject("WScript.Shell"
lRet = WiSh.Run("C:\Program Files\myExe.exe",1,True)
The Run method fails when I try to run the above code snippet. However, it runs when folders with no spaces in their names are used.
lRet = WiSh.Run("C:\ProgramFiles\myExe.exe",1,True) works fine.
So I believe the problem is with the spaces in folder names. Any ideas as to how to overcome this would be very much welcome.
Thanks in advance.
Hope it helps. Let me know what happens.
With regards,
PGK
I tried using the following Windows Script code but it is giving me problems:
Set WiSh=CreateObject("WScript.Shell"
lRet = WiSh.Run("C:\Program Files\myExe.exe",1,True)
The Run method fails when I try to run the above code snippet. However, it runs when folders with no spaces in their names are used.
lRet = WiSh.Run("C:\ProgramFiles\myExe.exe",1,True) works fine.
So I believe the problem is with the spaces in folder names. Any ideas as to how to overcome this would be very much welcome.
Thanks in advance.
Hope it helps. Let me know what happens.
With regards,
PGK