Create directories or files with names of current date and time in dos
posted on: 13:34, December 8th , 2012for /F "tokens=2-4 delims=. " %%i in ('date /t') do set dated=%%k-%%j-%%i
echo Date: %dated%
for /F "tokens=1-2 delims=: " %%l in ('time /t') do set timestamp=%%l%%m
echo Time: %timestamp%
mkdir c:\dos\%dated%
mkdir c:\dos\%dated%\%timestamp%
Comments:
All materials on this site are licensed under the following license: "Steal every piece of information you can get your hands on and run as fast as you can "