I am trying to run an executable file within VBScript. I am using the WshShell.Run command to do this but and unsuccessful. I have to pass argument to the executable to run. Sample code:
Set WshShell = WScript.CreateObject("WScript.Shell"
WshShell.Run C:\home\robocopy.exe C:\home\test C:\home\test2 /MIR
I have to pass all of the arguments to make the robocopy.exe work. The Run command does not like the arguments and causes an error whenit gets to this point, expexting end of statement error. How can I run the .exe with the argument?
Set WshShell = WScript.CreateObject("WScript.Shell"
WshShell.Run C:\home\robocopy.exe C:\home\test C:\home\test2 /MIR
I have to pass all of the arguments to make the robocopy.exe work. The Run command does not like the arguments and causes an error whenit gets to this point, expexting end of statement error. How can I run the .exe with the argument?