Since Windows happen to be the platform of choice of my clients for business needs I tend to write also scripts for Windows. Many times I just create small batch files to mimic Unix commands like ls
and ll
as I forget to type dir
instead. Anyway, many times I just want to pass any parameters provided to a batch file to the callee, and I used to have something like
@dir %1 %2 %3
Well, there should be a better way, and there is
@dir %*
and just in case you wander what other options are supported (and there are surprisingly many!), check out
call /?
in Windows command prompt, aka cme.exe
.
Enjoy!