Tag Archives: cmd

creating log files with date and time in their names.

Often want to create a log file from a cmd batch script which is unique for each day for /F “tokens=1-6 delims=/ ” %%A in (‘date /t’) do ( set dt=%%D_%%C_%%B_) for /F “tokens=1-6 delims=: ” %%A in (‘time /t’) … Continue reading

Posted in Powershell, VBS, VBA and other scripting. | Tagged | Comments Off on creating log files with date and time in their names.