What does the following %1 means (in a .bat file)?
jsmin <%1 >%2
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.
It represents the first command line argument passed to the batch file.
If you run your batch file with:
%1becomes “firstArg” and%2becomes “secondArg”The related
shiftcommand shifts the position of arguments one to the left. Runningshiftonce in a batch file will make “%1” value to be the second argument, “%2” becomes the third, and so on. It’s useful for processing command line arguments in a loop in the batch file.