Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

does %* in batch file mean all command line arguments?

share|improve this question
up vote 27 down vote accepted

Yes. According to the official Microsoft documentation:

The %* batch parameter is a wildcard reference to all the arguments, not including %0, that are passed to the batch file.

share|improve this answer
4  
note: if you have 30 words separated with spaces as argument, you can only take the 9 first words with %i, with i from 1 to 9, but with %* you can take all the 30 words – kokbira Apr 25 '11 at 20:38
3  
@kokbira or you can use shift to access the rest – TWiStErRob Nov 10 '14 at 13:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .