Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a folder that I keep all my downloads in for the month. I would like to be able to hit a key combination and have all the downloads for that month deleted. Would that be at all possible? The key combination can be anything. Here's where I keep all my downloads if needed.

C:\Program Files\Downloads\August (2010)\

If possible, the key combination would delete everything in the folder, but still leave the folder there. If that's not possible, then deleting the folder also be ok.

share|improve this question

migrated from Aug 28 '10 at 16:38

This question came from our site for professional and enthusiast programmers.

!ProgrammingRelated ?? MoveTo.SuperUser; // – Chase Florell Aug 28 '10 at 2:00
You should post your question on (and delete it here). – wuputah Aug 28 '10 at 2:01
@wuputah - Instead of deleting, it's ok to wait until it's closed. I voted to close, and we just need to wait for 4 more votes. – Chase Florell Aug 28 '10 at 2:05

Well, although haven't done something like that before, I'd suggest you try to set up a script in Autohotkey, then assign it to a keyboard shortcut, or to a time event when the folder will be deleted. FileRemoveDir function could prove to be useful, if you wish to remove the folder as well. There is an example of its usage at the bottom.

Also, the folder could be deleted via a simple batch script, but then assigning a shortcut could prove to be just a little bit more difficult than with this approach.

share|improve this answer
+1 for AutoHotKey. – boot13 Aug 28 '10 at 18:43

You must log in to answer this question.