Clean up "selected_files_xxxxx" directories

Come up with a useful post-processing script? Share it here!
Post Reply
raff
Newbie
Newbie
Posts: 2
Joined: September 16th, 2008, 12:37 pm

Clean up "selected_files_xxxxx" directories

Post by raff »

Hey folks.. kind of a script request I guess as I haven't been able to find a good solution..

I download single mp3's from usenet.. when I do that, they are uncategorized.. so they just go to the root downloads folder and the folder name is something like: "selected_files_20080916-170451"...

What I'm wondering.. is it possible to have all 'uncategorized' or 'raw' nzb files dumped into an 'Other' Folder? I have so far been unable to find a way..

A script to do it would be to simply move all files after they are downloaded to an 'Other' folder, and then delete the original folder.. (or delete all folders with nothing in them as I see a few threads down)..  but I'm unable to figure out a way to do this..

Anyone able to assist? Or perhaps find another way to do this?

Thanks so much!!
raff
Newbie
Newbie
Posts: 2
Joined: September 16th, 2008, 12:37 pm

Re: Clean up "selected_files_xxxxx" directories

Post by raff »

Actually.. surprise surprise I got it working..

Code: Select all

cd /d "Folder for all 'other' categories"
xcopy %1 /e
rmdir %1 /S /Q
Now just to make sure it's on only when a category isn't applied..
Post Reply