Shred files from recycle Bin folder

-1

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

c#
windows
winforms
recycle-bin
asked on Stack Overflow Mar 1, 2021 by Luke • edited Mar 1, 2021 by Filburt

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0