Batch loop example to run every exe file in a folder with parameters (-z -m). Originally adapted for running a folder full of windows update exe files.
for %%i in (*.exe) do call %%i -z -m
Read more →
Set a variable to the current Date and Time in Batch file:
for /F "tokens=2,3,4 delims=/ " %%i in ('date/t') do set d=%%k%%i%%j for /F "tokens=1,2,3 delims=:. " %%i in ('time/t') do set t=%%i%%j%%k echo The date is %d% and the time is %t%
Read more →