OK, I am trying to use SCHTASKS in a vbScript. However, I need to use spaces
in my path to launch the app, since JohnDo~1 may refer to "John Doe" or "John
Doeboy", depending which was installed first. How would I setup this line?
The /norun below would signify command-line arguments. The double-quote
thing never works and I tried triple-quotes but that didn't run either.
*********************************************
LaunchCommand = "SchTasks /create /tn ""Comment"" /tr ""C:\Program
Files\App.Exe /norun"" /sc once /st " & NewTime & " /sd " & NewDate & " /ru "
& InstallAccount & " /rp " & InstallPassword
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec(LaunchCommand)
*********************************************
Any help would be appreciated.
THANKS!