I use batch files to create wrappers around some commands which need extra argument to work. For example, I have a file pip.cmd
which adds a custom proxy argument to all pip
calls:
pip.exe --proxy="myproxy" %1 %2 %3 %4 %5
As you can see, I'm using %1
notation to transfer arguments of pip.cmd
to pip.exe
, however, my approach breaks if there's more than 5 arguments. In Linux, I'd simply use "$@"
, which handles all the arguments at once. Is there a similar notation or a reasonable workaround for a Windows shell?
pip.cmd arg1 arg2 argN
becomepip.exe --proxy="myproxy" arg1 arg2 argN
for anyN
.