Could anyone give me example code to access the command line through VBScript? I want to execute two commands respectively in a command prompt.
For example, first command: cd C:\a, second command: winzip32.exe -min -a D:\d.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put your commands in a .cmd or .bat file and then run that. You could even build the batch file inside your script if it is not static.
MyBatch.cmd
MyScript.vbs