Create date time folder in archive

Pass the name of the archive location to the cmd file:


 * shortcut name: create-YYYY-MM-DD_HH-mm-ss-folder.cmd - in c^users^robertster^desktop^archive
 * Target: C:\apps\scripts\folders\create-YYYY-MM-DD_HH-mm-ss-folder.cmd C:\Users\robertster\Desktop\archive
 * script: create-YYYY-MM-DD_HH-mm-ss-folder.cmd

create-YYYY-MM-DD_HH-mm-ss-folder.cmd
SET backupfolder=%1

SET dirname="%backupfolder%\%date:~10,4%-%date:~4,2%-%date:~7,2%@%time:~0,2%-%time:~3,2%-%time:~6,2%" echo %dirname% md %dirname% rem pause

rem C:\apps\scripts\folders\create-YYYY-MM-DD_HH-mm-ss-folder.cmd C:\Users\robertster\Desktop\archive rem is a shortcut to create folders in the archive folder