Generate a folder with the current date
Here is a solution how to create a folder with the name of the current date. You maybe want to perform a backup or another task using this option.
Create a new batchfile *.bat.

We are first going to create variables from the date:
FOR /F "tokens=1-4 DELIMS=/ " %%F IN ('date /T') DO (set v_date=%%F%%G%%H)
set daymonthyear=%v_date%
set monthyear=%daymonthyear:~-7%

After this, you can create some folders on your harddisk that have the name of month/year (var %monthyear%) or day/month/year (var %daymonthyear%). I made a folder for every month and inside these a folder for every day, so I can easily navigate and find my backups.
Now lets create these folders:
md "C:backup%monthyear%"
md "C:backup%monthyear%%daymonthyear%"

Now, you can perform a backup inside these folders:
xcopy "C:Documents" "C:backup%monthyear%%daymonthyear%Documents" /s
xcopy "C:Program Files" "C:backup%monthyear%%daymonthyear%Program Files" /s
admin / Dec 08, 2003
2004 - 2019 /