
wshshell.run: I can't run when there is a space in the path
hi Billy,
Use another set of quotes.
wshshell.run Chr(34) & "C:\Scripts R1\NOTEPAD.EXE" & Chr(34)
cheers, jw
Quote:
> Do you know any workaround to run a program that contains a space in the
> pathname ?
> Example:
> set wshshell = WScript.CreateObject("Wscript.Shell")
> wshshell.run "C:\Scripts R1\NOTEPAD.EXE" ' **** Note the space
> between "Scripts1" and "R1". It doesn't work