Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Shredder RecycleBin C.Line Request


  • Please log in to reply
15 replies to this topic
Shredder
  • Guests
  • Last active:
  • Joined: --
Hi, all, someone know a freeware Shredder C.Line for "clean" the RecycleBin in Xp?
I search and try some software but no success (normally only for delete existing file and drag and drop).
I looking for something for "delete" all files in RecycleBin.
Any help is appreciated, thanks in advance.
Regards, :)

  • Guests
  • Last active:
  • Joined: --
Eraser

BoBo
  • Guests
  • Last active:
  • Joined: --
Use SHIFT+DEL - and no file will make it to the RecycleBin :wink:

BoBo
  • Guests
  • Last active:
  • Joined: --

cleanmgr.exe

Automated cleanup of Temp files, Internet files, downloaded files, recycle bin (XP).

Syntax
CLEANMGR option

Options
/d driveletter: - Select the drive that you want Disk Cleanup to clean.

/sageset:n - Display the Disk Cleanup Settings dialog box and create
a registry key to store the settings you select.
The n value is stored in the registry and allows you to
specify different tasks for Disk Cleanup to run.
n can be any integer from 0 to 65535.
Specify the %systemroot% drive to see all the available options.

/sagerun:n - Run task 'n'
All drives in the computer will be enumerated, and the
selected profile will be run against each drive.

Only one of the 3 options above can be run at a time

Examples

CLEANMGR /sageset:64

CLEANMGR /sagerun:64
Options that can be chosen for cleanup:

Temporary Internet Files
Temporary Setup Files
Downloaded Program Files
Old Chkdsk Files
Recycle Bin
Temporary Files
Temporary Offline Files
Offline Files
Compress Old Files
Catalog Files for the Content Indexer

[More..]

8)

Shredder
  • Guests
  • Last active:
  • Joined: --
Thank you all for answering,
but i'm looking for a freeware, C.Line "shredder" (overwriting files in RecycleBin)
Thanks.

not-logged-in-daonlyfreez
  • Guests
  • Last active:
  • Joined: --
I repeat: Try Eraser (see my previous post, it's freeware and has command line options).

command line: eraserl.exe /?

Usage:

eraserl [Data] [Method] [-silent | -results | -resultsonerror ] [-queue] [-options]

Data:
-file data [-subfolders]
-folder data [-subfolders] [-keepfolder]
-disk drive: | "all"
-recycled

Method:
-method "Gutmann" | "DoD" | "DoD_E" | "Random" passes | "Library"

Parameters:
-file Data is a file (wildcards allowed)
-subfolders Include subfolders
-folder Data is a folder
-subfolders Include subfolders
-keepfolder Do not delete the folder
-disk Data is unused space on a drive or all local hard drives
-recycled Erase all data on Recycle Bin
-method Use given overwriting method (default "Library")
-silent No windows
-results Show Erasing Report
-resultsonerror Show Erasing Report only in case of error
-queue Wait until previous instances have finished
-options Ignore other parameters and show options


e.g.: eraserl.exe -recycled -method "DoD" -silent

:!: Be very careful with this tool

Shredder
  • Guests
  • Last active:
  • Joined: --
Thank you, not-logged-in-daonlyfreez!
Now try :D

Dippy46
  • Members
  • 171 posts
  • Last active: Aug 17 2007 06:53 AM
  • Joined: 06 Jul 2004
@ shredder

I think this is what your'e looking for

/*
On a module:
Const SHERB_NOCONFIRMATION = &H1
Const SHERB_NOPROGRESSUI = &H2
Const SHERB_NOSOUND = &H4
Public Declare Function SHEmptyRecycleBin Lib "shell32.dll" Alias "SHEmptyRecycleBinA"
(ByVal hWnd As Long, ByVal pszRootPath As String, ByVal dwFlags As Long)
As Long
*/

;; Translated AHK call

VOID := dllcall("shell32.dll\SHEmptyRecycleBinA",uint,0,str,"",uint,7)



Hope it helps
Simple ideas lie within reach, only of complex minds

shredder
  • Guests
  • Last active:
  • Joined: --
Hi Dippy46, thank you, maybe yes, is what I looking for, but :oops: I have no idea how to employ! :oops: :oops: :oops:
Can you please give me an running example?
Thanks in advance, Bye.

n-l-i-d
  • Guests
  • Last active:
  • Joined: --
Emptying the Recycle Bin will not 'shred' the data, it will merely remove the references to the files, so the files are not really gone. The 'erased' files will be overwritten if the hard disk space is needed.

majkinetor
  • Moderators
  • 4512 posts
  • Last active: May 20 2019 07:41 AM
  • Joined: 24 May 2006
Eraser!


Or you can try WinHex Security (not free, but trial available) that will also wipe slack space.
Posted Image

shredder
  • Guests
  • Last active:
  • Joined: --
@ majkinetor, yes, Eraser seem to be the right sw!
Thanks!

Dippy46
  • Members
  • 171 posts
  • Last active: Aug 17 2007 06:53 AM
  • Joined: 06 Jul 2004
Hi All,
Just got round to testing the ERASER software recommnded.
Quite impressed. To avoid having to install it on your system or writing code to access the DLL, The method below provides a quick and easy method to keep the bin trashed.
Adjust the recipe to taste 8)



/*
eraser does not have to be installed on the target machine
THE 2 FILES
eraser.dll
eraserl.exe
must reside in the path ie: WINDOWS\SYSTEM32
*/

settimer,TrashBin,600000 	; trash the bin every 10 minutes
gosub TrashBin 		; trash it on entry
loop
{
sleep 100
}

TrashBin:
Run, %comspec% /c eraserl -recycled -method "DoD" -silent , , hide
Return



Hope it's useful
Simple ideas lie within reach, only of complex minds

shredder
  • Guests
  • Last active:
  • Joined: --
very interesting, now try, thank you! :D

majkinetor
  • Moderators
  • 4512 posts
  • Last active: May 20 2019 07:41 AM
  • Joined: 24 May 2006

To avoid having to install it on your system

It is portabile.
Posted Image