How to make date wise folder on dos?

Asked By 10 points N/A Posted on -
qa-featured

I want to know how to make date wise folder on dos? Do i have to use batch file or it can be done in other ways, please explain to me

SHARE
Best Answer by tomari
Answered By 0 points N/A #164104

How to make date wise folder on dos?

qa-featured

 

Hey David,

In order to make a folder with the current date in dos you can use the following command

“md % :~ 4,2%date:~7,2%-%date :~10,4% ”

This will provide the current date to the new folder in dos.  This command will only work on windows which have been released after win98 and I have tested it on Windows XP and it worked without any problem.

Best Answer
Best Answer
Answered By 0 points N/A #164105

How to make date wise folder on dos?

qa-featured

 

Hello David, 
 
 
 
if you don't want to type all the command each time open an empty text document with notepad and copy paste the command inside, then go to menu File -> Save as… and put *.* in the Filetype selection. name the file makefolder.bat and hit save  
 
if you put the file inside the windowssystem32  folder  each time you want a datewise folder you open a command prompt proceed to the desired folder and type makefolder that it! 
 

 

Related Questions