What we do in life echoes in eternity!
sys7em
Home About Me Diary

Create directories or files with names of current date and time in dos

posted on: 13:34, December 8th , 2012

for /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:

Write a comment

*Name
E-mail:
*Security code:
*1+2 = (write in words ;)
*Message

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 "