answer:Try writing this at a DOS prompt and see if it gives you any ideas about how you can format your directory name: echo %date:~10,4%%date:~4,2%%date:~7,2% When I run that it gives me: 20110924 (for today) and a simple echo %date% returns Sat 09/24/2011 If your normal “Echo %date%” gives you a date that is formatted in another way (say, without the Day shown, or with the YYYY, MM, or DD values in a different arrangement, then of course you’ll need to modify the parsing of the Echo command. I know you can do it.