Discussion:
Path with spaces
(too old to reply)
nomar26
2004-01-17 02:19:46 UTC
Permalink
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
Wilko
2004-01-17 20:19:24 UTC
Permalink
Hello,

Did you try this script for a program which is in a path without spaces?

Wilko
Post by nomar26
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
Post by nomar26
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
Loading...