How to pass arguments into a batch file

The batch file is
echo %1
echo %2
Save this file as arguments.bat. In the command line we can type this command arguments.bat arg1 arg2. It will output

arg1
arg2

Reference

http://stackoverflow.com/questions/26551/how-to-pass-command-line-parameters-to-a-batch-file

Comments

Popular posts from this blog

How to write data into a excel file using vbscript

Format date as yyyy-mm-dd using vbscript