Shredder anybody?

Features wanted...
Statler
Posts: 58
Joined: 06 Jun 2006 09:38
Location: Austria

Post by Statler »

From what I can read here ("How SDelete works"), shredding the files properly can be a bit tricky, when it comes to compressed, encrypted or sparse files. And it seems even more complicated when you try to implement the same for free space... :)

PeterH
Posts: 2822
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

I don't think there is any dependency to the filetype - the physical file is overwritten with some pattern, maybe multiple, and that's it.

Free space is another thing...

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Post by mwb1100 »

PeterH wrote:I don't think there is any dependency to the filetype
Statler wasn't talking about filetype, but the storage attributes on an NTFS file. There are some issues beyond simply using the standard basic file I/O routines to overwrite the files.

You should follow the link (which may not have been obvious - http://technet.microsoft.com/en-us/sysi ... 97443.aspx) for the details.

PeterH
Posts: 2822
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

mwb1100 wrote:Statler wasn't talking about filetype, but the storage attributes on an NTFS file.
Sorry, that's right - I misinterpreted meaning of 'compressed' as of something like zipped...

admin
Site Admin
Posts: 64287
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Statler wrote:From what I can read here ("How SDelete works"), shredding the files properly can be a bit tricky, when it comes to compressed, encrypted or sparse files. And it seems even more complicated when you try to implement the same for free space... :)
Indeed interesting, thanks for pointing to it.

I assume SDelete supports command line switches, so it would be easy to integrate it into XY via a user command?
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Statler
Posts: 58
Joined: 06 Jun 2006 09:38
Location: Austria

Post by Statler »

admin wrote:I assume SDelete supports command line switches, so it would be easy to integrate it into XY via a user command?
Yes. it does. The switches are documented on the same page. :)

admin
Site Admin
Posts: 64287
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Statler wrote:
admin wrote:I assume SDelete supports command line switches, so it would be easy to integrate it into XY via a user command?
Yes. it does. The switches are documented on the same page. :)
Oh, I must have been switch blind. Too much beach time... :wink:
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

"Syntax challenged"

Post by aurumdigitus »

It appears that my dotage has left me "syntax challenged".

Would some provide an example of how to use Sdelete from the Catalog on a group of selected files.

Thank you ...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: "Syntax challenged"

Post by jacky »

aurumdigitus wrote:Would some provide an example of how to use Sdelete from the Catalog on a group of selected files.
Haven't tried it, but it seems if you choose "Open selected List Item(s) with Application" under "Action on click" (in the Advanced section at the bottom) and put the path to sdelete.exe into "Application", it should work.
Not sure if it allows multiple items to be deleted at once, if not simply choose "Multiple Instance" and that should do it.
Proud XYplorer Fanatic

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Multiple instances

Post by aurumdigitus »

Thanks oh wise one. That bit about multiple instances was the key to success. A matter of not seeing the forest through the trees really.

"The best thing about the good old days was I wasn't good and I wasn't old." :shock:

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »

I use this:

Code: Select all

 msg "delete items forever?",1; 
 openwith ""C:\WINDOWS\system32\sdelete.exe" -p 5 -s <items>", m

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Post by aurumdigitus »

Yes - that's it! It was the use of the double "double quotes" that was throwing the script syntax off this morning.

admin
Site Admin
Posts: 64287
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

aurumdigitus wrote:Yes - that's it! It was the use of the double "double quotes" that was throwing the script syntax off this morning.
Actually I'm not so happy with the double "double quotes" rule as it is right now (in UDC and Scripting). I wished I opted for the common standard!! :cry:

XYplorer: use double quotes around app when there are command switches.
Common standard: use double quotes around app when app path contains blanks.

I know I cannot go back now because it would break tons of user code. But maybe I could offer an option (tweak) to use the common standard? Opinions?
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »

Yes, make it optional please. +1 for this.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »

Yes, make it optional please. +1 for the common standard.

Post Reply