Jump to content

Return to Piriform.com

Recuva command line to securely delete any files it finds?


  • Please log in to reply
3 replies to this topic

#1 OFFLINE   rjo98

rjo98

    Member

  • Members
  • PipPip
  • 43 posts

Posted 08 September 2012 - 07:47 PM

Is there a switch/option to use with recuva from a command line that will just have it do a scan for files then securely delete whatever ones it finds?  or even if it just caused the program to run and delete all files it finds according to whatever the settings are set to in the program already, that would work too.

#2 OFFLINE   DennisD

DennisD

    Member

  • Moderators
  • 9,174 posts
  • Gender:Male
  • Location:England: NE Coast

Posted 09 September 2012 - 09:24 AM

The only command line switch Recuva has is the one shown here ...

http://www.piriform....line-parameters

... but have you thought of simply carrying out a "Wipe Free Space" with CCleaner, using a one pass secure delete?

http://www.piriform....free-disk-space

#3 OFFLINE   rjo98

rjo98

    Member

  • Members
  • PipPip
  • 43 posts

Posted 19 September 2012 - 09:05 PM

Yeah, that would accomplish the same thing, but I didnt see a command line way to do that either.

#4 OFFLINE   DennisD

DennisD

    Member

  • Moderators
  • 9,174 posts
  • Gender:Male
  • Location:England: NE Coast

Posted 20 September 2012 - 04:03 PM

You could run Wipe Free Space on it's own via command line, but it would need to be done via a pretty easy workaround, and as far as I'm aware this wouldn't be doing anything to contravene CCleaner's Terms and Conditions.

If you already have CCleaner installed, then you would need to make a second install to a differently named folder, for example "CCleaner2". You could actually just download and locate the portable version into an alternative folder.

You could then open CCleaner from that new folder and then right click the "Windows" heading and "uncheck all" ...

Attached File  2012-09-20_213835.jpg   206.04K   2 downloads

Do the same with the "Applications" section ...

Attached File  2012-09-20_213956.jpg   202.73K   1 downloads

Now select just the "Wipe Free Space" box in "Windows\Advanced" ...

Attached File  2012-09-20_214038.jpg   146.41K   2 downloads

and then choose the drive and deletion method in "Options\Settings".

That's it. Now just set up your command line parameter to run CCleaner.exe located in the "CCleaner2" folder, and all that will run is Wipe Free Space.

Quote

Command-line parameters for CCleaner operation
There are three parameters you can use when running CCleaner, as follows. You can use them in batch files, scripting, shortcuts, or the Task Scheduler to automate CCleaner operation. For example, you could set CCleaner to run automatically every day at 3:00am.

http://www.piriform....line-parameters

If you try using CCleaners "Tools\Drive Wiper" to do this it won't work as that feature is ran independently of the normal cleaning functions.

I would also add, that WFS isn't something recommended to be ran on a regular basis, although that's the users choice of course.

Hope that helps.