Dos Expert Please Help.

MaMister

Member
Nov 18, 2003
35
0
0
Hi, I would like to create a directory with current date.

Using dos command prompt

Anyone know whats the command ??

what i mean is example : c:\directory 26-12-2003 when ever the date is today.

Need to know this as i can't use the explorer because I am doing it in a batch file.
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
I don't think you do that directly through the "md" or "mkdir" command.. you can do that with a simple programming language though (at least I'm sure for Java and C++).
 

MaMister

Member
Nov 18, 2003
35
0
0
Got this command from somewhere else.

Works fine on my winxp machine but not win98... any idea ?

for /F %%i in ('date /T') do set TODAY=%%i