nerus
06-10-2002, 11:11 PM
Ok, I'm pretty new to this vbscript so please forgive me for such a dumb question. How do I make this work plz...
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("c:\Program Files\test.vbs")
Very basic vbscript, I simply want to run another application which is located in c:\program files but it wont' run it says "The system cannot find the specified file" everytime. It has to do with the space in Program Files cause it works if I rename it without spaces. So in other words, how do I deal with long file names with spaces when program whs with vbscript?? Please help, thanks!
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("c:\Program Files\test.vbs")
Very basic vbscript, I simply want to run another application which is located in c:\program files but it wont' run it says "The system cannot find the specified file" everytime. It has to do with the space in Program Files cause it works if I rename it without spaces. So in other words, how do I deal with long file names with spaces when program whs with vbscript?? Please help, thanks!