This is very handy if you are using scripts to generate daily logs and would like to put them in a folder with the current date. You can, of course, tweak the commands to suit your requirements: for /F “tokens=1-4 delims=/ ” %%A in (‘date /t’) do ( set DateDay=%%A set DateMonth=%%B set DateYear=%%C […]