[Back To Directory]

Empty Recycle Bin:

1. Open Borland C++ Builder.
2. Place a Button on the form.
3. Double click Button1.
4. Type the following red code in the Button1Click function:

//This is what the Button1Click function should look like:

void __fastcall TForm1::Button1Click(TObject *Sender)
{
    SHEmptyRecycleBin(NULL, NULL, SHERB_NOCONFIRMATION);
}
//---------------------------------------------------------------------------


5. Run the program, click the button. The Recycle Bin will be emptied.



[Back To Directory]