What are “%1” and “%2” in batch files?
It represents the first command line argument passed to the batch file. If you run your batch file with: myfile.bat firstArg secondArg %1 becomes “firstArg” and %2 becomes “secondArg” The related shift command shifts the position of arguments one to the left. Running shift once in a batch file will make “%1” value to be … Read more