Creating a new folder in Win 7 using DATE as the name

Do you have a need to create a folder with the current date as the folder name?  I create a “Received” folder in each job folder structure.  When I get new files I put them in a subfolder with the current date formatted as 2010-05-27 so they sort chronologically. 

I do this so often that I wanted to put a command in Windows Explorer that would create the folder for me automatically.  Now, I can browse to any folder, right click on a folder, and pick the command New (DATE) Folder.  No typing, one click and it is done.  To add this command to the Context Menu in Windows Explorer I did a quick and easy edit to the registry.  I have used this registry hack for years in WinXP but found no blog posts on how to do the same in Win 7….until now.

Thanks goes to Ralph Arvesen for his post which pointed me in the right direction.

Before you begin you must change the Windows System date format under Regional Settings in Control Panel.  You cannot use / in the date format since this is an invalid character for folder names.  Change the / to – in the date format.  You cannot skip this step.  Your date format must contain valid characters for folder names.  That’s all the ID-10-T error trapping I can offer.

Below are the steps to add the New (DATE) Folder to Windows Explorer’s Context Menu in Windows 7. 

Use WindowsKey+R to get the Run dialog open and type Regedit

[HKEY_CLASSES_ROOTDirectoryshell]

Add a new Key

New (DATE) Folder

               (Add another New Key under this key called “command” and you get the following

[HKEY_CLASSES_ROOTDirectoryshellNew (DATE) Foldercommand]

Rclick Modify the Default value for command key and type the following

CMD.EXE /C MD “%1%%DATE%%”

Try it.  Open Windows Explorer.  Browse to a folder. Right Click and pick New (DATE) Folder.

9 thoughts on “Creating a new folder in Win 7 using DATE as the name

    1. Sorry, I had a syntax error. Path should be HKEY_CLASSES_ROOTDirectoryshellNew (DATE) Folder then create the Command key below it and populate with the cmd.exe statement.

  1. Thanks for this! I used to have this feature a few years back, and then forgot about it in subsequent computer changes and updates – now I find myself wanting it again!

    One comment for people who want to use this: if you copy/paste the command info, make sure that the quotes actually come in as quotes, not a special font character. After pasting, delete the quote, and type it in yourself. Other than that, this tip works like a charm!

Leave a Reply to J Cancel reply