1.

Solve : how to create a directory based on date?

Answer»

I would like to know how to create a directory using md command with the following format : DDMMYYYY
Any help is greatly appreciated.Do you need someone to do the coding to find out what your current date format is or will you tell US?

I don't know how to do it. So I am looking for the dos command. Quote from: donsls on December 29, 2010, 09:25:07 AM

I don't know how to do it.

1. Open a command window.

2. Type echo %date% at the prompt and HIT Enter.

3. Tell us what you see, preferably by copying and pasting

If you do not do this we cannot help you.


I see the following:
Wed 12/29/2010 Code: [Select]for /f "tokens=1,2 delims= " %%A in ('echo %date%') do set dpart=%%B
set foldername=%dpart:~3,2%%dpart:~0,2%%dpart:~6,4%
MD "%foldername%"


Discussion

No Comment Found