- For Windows 7 or Server 2008 run this command from the command prompt:
rd /s c:$Recycle.Bin
- For Windows XP or Server 2003 run this command from the command prompt:
rd /s c:recycler
Usefull Batchfile:
1 2 3 4 5 6 |
@echo off rd /s /q C:$Recycle.bin rd /s /q D:$Recycle.bin rd /s /q E:$Recycle.bin rd /s /q F:$Recycle.bin rd /s /q G:$Recycle.bin |
1 2 3 |
echo Thanks Job done echo press any key to exit pause |
1 |
rem No pipe necessary the /q parameter (quiet) |
1 |
— |
1 |
RD command |
1 2 3 4 5 |
Delete folder(s) Syntax RD pathname RD /S pathname RD /S /Q pathname |
1 2 3 4 |
Key /S : Delete all files and subfolders in addition to the folder itself. Use this to remove an entire folder tree. |
1 |
/Q : Quiet – do not display YN confirmation |