Category: Scripts 🠪 Batch Run command for each commandline argument passed
November 30, 2023
%%x will effectively equal %1, then %2, etc.
for %%x in (%*) do (
powershell.exe -File "%ps1path%" -File "%%x"
)
This site is meant to be used as a reference for myself, although others may find it useful. I use it to keep track of certain fixes, software, and other solutions which I may need while assisting customers. The page layout is pure HTML/CSS and is kept simple to optimize loading time and fast results.