Dec 7, 2001 #1 mmetze Programmer Oct 2, 2001 45 US Is there a way to programatically empty the recyle bin?
Dec 7, 2001 1 #2 Spellman Programmer Nov 4, 2001 205 GB I have never had to do it but i'm sure you could do it using the filesystemobject. try something like this dim fso as filesystemobject fso.DeleteFile("C:\Recycled\*.*" Mark The key to immortality is to make a big impression in this life!! Upvote 0 Downvote
I have never had to do it but i'm sure you could do it using the filesystemobject. try something like this dim fso as filesystemobject fso.DeleteFile("C:\Recycled\*.*" Mark The key to immortality is to make a big impression in this life!!
Dec 7, 2001 1 Thread starter #3 mmetze Programmer Oct 2, 2001 45 US I never even thought about just deleting the files in the "recycled" directory! As an alternate approach, I discovered that you can use the SHEmptyRecycleBin API. http://msdn.microsoft.com/library/d...latform/Shell/Functions/SHEmptyRecycleBin.asp Thanks for the tip! Mark Upvote 0 Downvote
I never even thought about just deleting the files in the "recycled" directory! As an alternate approach, I discovered that you can use the SHEmptyRecycleBin API. http://msdn.microsoft.com/library/d...latform/Shell/Functions/SHEmptyRecycleBin.asp Thanks for the tip! Mark