I am trying to launch a program called WebDrive from a vbscript but I cant get the syntax right to launch the program with a number of parameters; currently run from a batch file:
start /wait /D "c:\program files\webdrive" webdrive.exe /s:"syd-ftp.thruinc.net"
My base code is:
Set objShell = CreateObject("cscript.Shell")
objShell.Run start /wait /D c:\program files\webdrive webdrive.exe /s:"syd-ftp.thruinc.net"""
Set objShell = Nothing
I have read a number of posts on this site relating to this topic but I cant seem to get the quotes right, for example:
Set objShell = CreateObject("cscript.Shell")
objShell.Run "start /wait /D ""c:\program files\webdrive"" webdrive.exe /s:"""syd-ftp.thruinc.net"""
Set objShell = Nothing
Any advice would be great.
Regards
Martin