Zum Inhalt

Monat: August 2016

Create text file with current date from batch file

If you would like to create an empty (except a dot) text file with the current date as the filename you can do so with the following command:

echo . > %date:~-4,4%%date:~-7,2%%date:~-10,2%.txt