Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WshShell.Run ("cmd /c start """"..... always return code 0

Status
Not open for further replies.

PiotrMP006

Programmer
Sep 17, 2021
2
PL
Hi

Code:
errorcode = WshShell.Run ("cmd /c start """" /low /wait ""C:\Program Files\7-Zip\7zG.exe"" a -t7z -- """ & archivename & """ " & arguments, 1, True)

Always return code 0


Please help me
 
Because that cannot possibly be your entire VBScript. You call filepaths and arguments that haven't been defined.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top