1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A possibly stupid question about the "del" command...

Discussion in 'Support' started by mathewsdw, Jun 5, 2014.

  1. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    I accidentally deleted more than 30 spreadsheet files by typing the command "del *.xls" when I meant to issue the command "del *chase*.xls". So I bought the latest version of a program named Recuva that I had used in the past to successfully recover accidentally deleted files, and when I ran it it stated that 30+ files had been recovered and none of them had been partially overwritten by another file. However all 30+ supposedly "recovered" files consist entirely of binary zeroes. Was this done by the delete command?
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,311
    Likes Received:
    39
    Possibly, if you specified /W.... Do you by any chance have DEL aliased?
     
  3. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    First off, Charles, I was only dimly aware of the very existence of the "/W" option and no I don't have any alias for the "del" command. Secondly, the "/W" option does not fill the file with binary zeroes, it (from the documentation) "overwrites every byte in the file with different values." But thank you for asking.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,869
    Likes Received:
    83
    No, it was definitely not done by the DEL command (which just calls the Windows API, which just marks the file sectors as available for reuse).
     
  5. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    Thank you, Rex, that's what I thought. What that means is the "undelete" program I bought and was using (a program named "Recuva") did an <many expletives deleted> job of recovering the files. And it appears that there is no way to recover them since the "recovered" files overwrote the deleted files.
     
  6. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,311
    Likes Received:
    39
    My misunderstanding. Sorry.

    I've used that a few times. Once or twice it did succeed in recovering files; other times not. There's just no substitute for having backups.
     
  7. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    Charles, you are correct about backups. However the reason (mistakenly) there were no backups is because I really didn't consider them to be permanent files; they were essentially just working storage (because of my bad memory I keep a lot of what are essentially "notes" around).
     
  8. thedave

    Joined:
    Nov 13, 2008
    Messages:
    253
    Likes Received:
    2
    Is this a SSD? If so, it means your garbage collection probably works.
     

Share This Page