Skip

Folder logic
March 2, 2011 8:05 AM   Subscribe

Please help me create a dated folder (Windows 7).

I'd like to have a context menu option or keyboard shortcut that creates a folder in the currently selected Windows Explorer window with the current date as its name, e.g., 3.1.2011 for today.

I considered:
  • Autohotkey
  • Something like this (but for Win 7)
What's the best way to go about this? Note that I do not need/want to create one per day (no need for a batch), this should be on-the-fly/discretionary.

I have experience doing this using Outlook VBA to store email attachment files, but the thing here is that I want to do it without reliance on anything but the current context (currently selected Windows Explorer window).

Hit me with your best! Thanks in advance.
posted by xiaolongbao to Technology (5 answers total)
 
But wouldn't it be better to create the date in a format that sorts better? 20110302?

I dont' actually know how to do this though.
posted by mary8nne at 8:31 AM on March 2, 2011


I believe Windows 7 creates a new folder in Windows Explorer when you hit Ctrl+Shift+N, with the name highlighted so typing it in. So this AutoHotkey script should map Ctrl+Alt+F to making a new folder with the date in the format you mentioned (although I haven't tested it on Windows 7). You might need to put in a pause or something if it's typing the date too fast before the folder is created.

^!f::
Send ^+n
Send %A_MM%.%A_DD%.%A_YYYY%{Return}
return

posted by burnmp3s at 8:41 AM on March 2, 2011


here is a SuperUser post on customizing a Windows Explorer menu item to call 7Zip with the current date used as parameters. Should be simple to change that to calling the md (make directory) command with the date string that you like.
posted by mmascolino at 9:16 AM on March 2, 2011


Thanks y'all. I appreciate your input (mary8nne you're right, that's my new strategy though I never have needed to sort these folders so far :)

Here's my script for posterity:

#persistent
^N::
WinGetActiveTitle aTitle
FileCreateDir %aTitle%\%A_YYYY%.%A_MM%.%A_DD%
Return

posted by xiaolongbao at 11:40 AM on March 22, 2011


Oh, and in case it's not obvious, that is an AutoHotkey script
posted by xiaolongbao at 11:42 AM on March 22, 2011


« Older Hemlock hedge invaded by woole...   |  Is there a way to build an aut... Newer »
This thread is closed to new comments.


Post