How to create a folder using current date as folder name?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I tried typing in command prompt "md %date%" and it returns "The syntax of
the command is incorrect". I guess %date% is not the correct variable...

How can I create a folder with name in YYYYMMDD format?
 
yeah I found the soln
syntax error occur becoz my system is configured to show time in yyyy/mm/dd
where slash is illegal for folder name
changed to yyyy-mm-dd in control panel > regional settings, then the md
%date% works flawlessly
 
Back
Top