Behold the following script that I have managed to create at the moment (it's a batch script, and this is the whole thing):
echo Recycle %%A
recycle "D:\7) Temporary\Media Caches\Pr\*.*"
What this will do, in my above example, is recycle the contents of the specified folder. It uses the following plugin to do so, which should be able to work the same way as the regular del command: http://www.maddogsw.com/cmdutils/
However, when I use this, it does not ask for confirmation and instead immediately recycles the contents of the folder. Similarly, it recycles EVERYTHING within the folder. My two goals are the following:
I need to be able to exclude specific files that are within this folder from being recycled (specifically, the hidden "desktop" file that I need to keep for personal reasons).
And it needs to ask for confirmation each time that I double-click the script. I've tried several things here (such as /P) but I'm either not putting it in the right place or it might not work with this recycle plugin. For those of you trying to help me, treat it as if it was del and then see if you can accomplish my two aforementioned goals. I'm not sure how to exclude a specific file (or perhaps multiple files) nor am I sure how to get it to ask for confirmation. While a dialogue box would be much nicer than having the command prompt come up (which, I don't know how to create a dialogue box) function is the most important, and if it has to be done with the command prompt, that's okay. So remember, my goals:
- Ask for confirmation before recycling the contents of the folder (not the folder itself).
- Exclude the hidden "desktop" system file within the folder from being sent to the recycle bin.