I making one small application which shreds files from recycle bin folder, but i am not to access the files from Recycle bin folder
so far i have done this to remove files from recycle bin folder , but this does not remove
enum RecycleFlag : int
{
SHERB_NOCONFIRMATION = 0x00000001, // No confirmation, when emptying
SHERB_NOPROGRESSUI = 0x00000001, // No progress tracking window during the emptying of the recycle bin
SHERB_NOSOUND = 0x00000004 // No sound when the emptying of the recycle bin is complete
}
[DllImport("Shell32.dll")]
static extern int SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, RecycleFlag dwFlags);
public static void Remove()
{
SHEmptyRecycleBin(IntPtr.Zero, null, RecycleFlag.SHERB_NOSOUND | RecycleFlag.SHERB_NOCONFIRMATION);
}
Can any one help me out on how to shred files from reycle bin folder in Windows
User contributions licensed under CC BY-SA 3.0