(Solved) - comand line instruction to empty recycle bin(14 posts)
Right Click Recycle Bin.
Choose Properties in menu.
Check Mark Box [ Do Not Move Files to Recycle Bin. Remove Files Immediately. ]
Do that for all storage drives.
Now all deletions will NOT go to Recycle Bin but will be deleted immediately from the disk.
This has to be a command that can be executed as part of a BASIC language program. This program will be doing a lot of other things also and the command will compiled as part of the overall program into an executable file. When specific test are passed it will then empty the recycle bin.
ronniesonora; I am running Windows 7 but I will be creating an exe that should run regardless of which os I am running.
Lighthouse; Windows will not let me delete the recycle bin. It gives me an "access denied" when I attempt to use the RD command on the recycle bin.
Lighthouse; thanks for the link to the addon for "take ownership".
I took something from several of the suggestions above and I believe I have come up with a workable solution to my problem. Thanks everyone.
This topic has been closed to new replies.