GuideProgramming + ScriptingBatch Files Run command for each commandline argument passed Updated August 11 2024
%%x will effectively equal %1, then %2, etc.


for %%x in (%*) do (
powershell.exe -File "%ps1path%" -File "%%x"
)





©2024 - Some portions of this website are Copyrighted.
Your IP: 3.144.45.234     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy