home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / misc / 27272 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!mcsun!sun4nl!kubds1!hoppie
  3. From: hoppie@kub.nl (Jeroen Hoppenbrouwers)
  4. Subject: Re: Idea for a unique delete?(for lack of a better description)
  5. Message-ID: <1992Aug13.111004.2582@kub.nl>
  6. Date: Thu, 13 Aug 92 11:10:04 GMT
  7. Organization: Tilburg University, Tilburg, The Netherlands
  8. Nntp-Posting-Host: kubix
  9. Lines: 34
  10.  
  11. In article <1992Aug12.024411.3787@afit.af.mil>, fkilpatr@afit.af.mil
  12. (Freeman A. Kilpatrick) writes:
  13. >Why not just make a 'trash' directory, shadow it to the desktop, then
  14.  
  15. (stuff deleted)
  16.  
  17. I caught some people in this tread complaining about the Shredder not
  18. being able to recover shredded objects. Although you cannot open the
  19. shredder (reason why all Trashcan imitations posted so far are really
  20. useful), there *IS* a way to recover shredded items.
  21.  
  22. Just add the DELDIR= line to your CONFIG.SYS (OS/2 install puts it
  23. there with a REM in front of it). Put the "trashcan" dir in the line,
  24. e.g.       SET DELDIR=\OS2\TRASH
  25. You can add some number as well, eg SET DELDIR=\OS2\TRASH,512
  26.  
  27. Now all files that will be deleted by the system delete call (used
  28. by both Shredder and the delete commands) will be moved to the TRASH
  29. dir and not physically erased until this dir exceeds 512 KB.
  30.  
  31. If it is not yet physically erased, you can recover any file with
  32.  
  33. UNDELETE former-filename-incl.-path
  34.  
  35. So this is no hacked undelete that picks up disk sectors, but an official
  36. OS/2 utility that reads the deleted file back out the DELDIR directory.
  37.  
  38. In this dir, files are stores in a "proprietary" manner and they are not
  39. visible with DIR. So, the trashcan approach is still better :-)
  40. but at least, with a very simple trick, you can recover from deletes.
  41. In fact, you can even recover from Empty Trash!  :-)
  42.  
  43.  
  44. ---Jeroen
  45.