nomar26
2004-01-17 02:19:46 UTC
I am writing a VBscript and I trying to launch an application and the path
contains spaces. I can't seem to get it to work. Any suggestions? Example
below:
Dim appexe
appexe = "c:\program files\common files\myapp.exe"
Dim Wshell
Set Wshell = Wscript.CreateObject("Wscript.Shell")
Wshell.Run appexe, 1, true
Set Wshell = Nothing
contains spaces. I can't seem to get it to work. Any suggestions? Example
below:
Dim appexe
appexe = "c:\program files\common files\myapp.exe"
Dim Wshell
Set Wshell = Wscript.CreateObject("Wscript.Shell")
Wshell.Run appexe, 1, true
Set Wshell = Nothing