Does anyone know why when I reference C:\Program Files in my vbscript that it is not able to find anything in it. Seems like it gets confused when there is a white space. All I am trying to do is execute a program at C:\Program Files\etc...
>All I am trying to do is execute a program at C:\Program Files\etc...
[tt]
wshshell.run """C:\Program Files\etc.exe"""
wshshell.run chr(34) & "C:\Program Files\etc.exe" & chr(34)
[/tt]
and many variations on argumens, .run or .exec etc.
the .Run method will auto convert environment variables for you, so given the fact that machines might be DE, IT, ES or machines might have different folder structures, i.e. d:\program files i would recommend using something like
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.