Automatically create folder with todays date?

Soldato
Joined
27 Sep 2004
Posts
11,207
Location
The Ledge Beyond The Edge
Hiya,

I am looking for a way in dos to automatically create a folder using todays date as the name?
Its going to sit in a batch file and once its processed some files i want it to move them into an archive folder of todays date, does anyone know how to do it??

Cheers
 
What i have is a batch file with the following in it

set ddmmyy=%date%

md %ddmmyy%

and it tried to create a folder called 19/10/2006 which it doesnt like cause of the / can i cant it to . or just no divider at all??

edit ahhh just seen yer ninja edit, will try that lol

edit again, that worked and it wasn't a ninja edit but someone else sorry lol

thanks for yer help guys :D
 
Last edited:
Yeah sorry

I had a a bat file with the following in it

md %date%

Copy *.txt %date%\*.txt

But to get it will only work if you do what Bledd said and change the date separator in the regional settings to something other than / i used - and it creates my folder dd,mm,yyyy
 
Back
Top Bottom