I am using Eraser version 5.86.1.
I wrote the batch script below which allows me to erase the Recycle Bin with the single-pass random data method, just by clicking on it.
@echo off
:: CLEARS RECYCLE BIN WITH 1 PASS OF PSEUDORANDOM DATA
start "" "C:\Program Files\Heidi.ie\Eraser\eraserl.exe" -recycled -method Random 1
exit
My question is how do I modify this so I can erase the contents of a specific folder?
For example say I want to delete the contents of a folder on my Desktop named Trash, but leave the folder itself.
How would I invoke eraserl.exe to go to the path "C:\Documents and Settings\Owner\Desktop\Trash", delete the contents, and then leave the folder named Trash empty on the Desktop?
I tried this:
start "" "C:\Program Files\Heidi.ie\Eraser\eraserl.exe" "C:\Documents and Settings\Owner\Desktop\Trash" -subfolders -keepfolder -method Random 1
thinking it would start eraserl.exe, point to the Trash folder, then apply the proper parameters, but it didn't work. And before I accidentally delete something important I decided to ask for help.
My problem is that I just don't know the syntax for the command. The help screen that I see when I click on eraserl.exe for the command line parameters isn't all that clear to me.
If you could, please explain the variety of ways a folder's contents may be erased. For example, how to erase everything including the top folder, or how to erase all contents, but leave the top folder, or how to erase just subfolders, or how to erase just files, but leaving subfolders and the top folder, etc.
Please help.
Thanks
I wrote the batch script below which allows me to erase the Recycle Bin with the single-pass random data method, just by clicking on it.
@echo off
:: CLEARS RECYCLE BIN WITH 1 PASS OF PSEUDORANDOM DATA
start "" "C:\Program Files\Heidi.ie\Eraser\eraserl.exe" -recycled -method Random 1
exit
My question is how do I modify this so I can erase the contents of a specific folder?
For example say I want to delete the contents of a folder on my Desktop named Trash, but leave the folder itself.
How would I invoke eraserl.exe to go to the path "C:\Documents and Settings\Owner\Desktop\Trash", delete the contents, and then leave the folder named Trash empty on the Desktop?
I tried this:
start "" "C:\Program Files\Heidi.ie\Eraser\eraserl.exe" "C:\Documents and Settings\Owner\Desktop\Trash" -subfolders -keepfolder -method Random 1
thinking it would start eraserl.exe, point to the Trash folder, then apply the proper parameters, but it didn't work. And before I accidentally delete something important I decided to ask for help.
My problem is that I just don't know the syntax for the command. The help screen that I see when I click on eraserl.exe for the command line parameters isn't all that clear to me.
If you could, please explain the variety of ways a folder's contents may be erased. For example, how to erase everything including the top folder, or how to erase all contents, but leave the top folder, or how to erase just subfolders, or how to erase just files, but leaving subfolders and the top folder, etc.
Please help.
Thanks