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

link|improve this question

feedback

2 Answers

up vote 5 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.

link|improve this answer
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
feedback

% is usually any character. * means any any character any length.

link|improve this answer
This is incorrect. The % character is used in Windows batch files for variables, not for pattern-matching. – Matt Solnit Jun 7 '10 at 22:29
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.