windows - Generating a batch file with %* as a parameter -


i have tool written in dos/batch generates other batch files need...

works fine , useful...
inner working is same doing

echo dir /s \windows\*.log > logs.cmd 

this make script named "logs" functionality
(it's simplification illustrate objective)

recently need add %* parameter of generated batch file
(to capture input parameters command line)

the problem don't know how generate "%*" sequence

i try several escape sequences , tricks google(ed) net
nothing seems work

?any ideas??

according this page, % marks must escaped this: %% (double percentage signs, second 1 show up.

you should able pass in * normal escape character, is: ^%. if doesn't work, try "*" (but ^ escape should work).

so together, passing in %* param code this: %%^*.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -