Saved Bookmarks
| 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 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%" |
|