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