Originally posted by: WobbleWobble
Now try " echo %date:~0,2%-%date:~3,2%-%date:~6% "
That should give you 12-31-2005, if so, then you can go "md D:\OfficeMate_%date:~0,2%-%date:~3,2%-%date:~6%"
Shuxclams's code extends it a bit futher by checking if folder exists. It'd be what's in the code box.
The other simple way of doing it is simply changing your Regional Settings in Windows. Change the date seperator from "/" to "-", since you can't have "/" in files names. That way you can simply use "md %date%"