Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Aug 28 '10 at 16:38

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

    
!ProgrammingRelated ?? MoveTo.SuperUser; // superuser.com –  Chase Florell Aug 28 '10 at 2:00
    
You should post your question on superuser.com (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

1 Answer 1

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  
+1 for AutoHotKey. –  boot13 Aug 28 '10 at 18:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.