In a batch file, do I have to do (e.g.) the following?
@echo off
call other.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
|
In a batch file, do I have to do (e.g.) the following?
|
||||
|
|
Windows batch files (since Windows XP, but possibly earlier) support the Unfortunately, this doesn't honour the
It'll still pass the first parameter on to the second batch file. |
|||
|
|
|
You can gather all the args together using something like:
This works regardless of how many arguments there are. |
|||
|
|
|
You can write your example as follows:
Also: shift is supported on windows... See this.
|
|||||||||||
|
|
If you want to skip the first 3 parameters, for example, and pass on the rest:
There may be problems with quotes in parameters. kudos to Patrick Cuff, http://stackoverflow.com/questions/382587/how-to-get-batch-file-parameters-from-nth-position-on |
||||
|
|
|
|||
|