Mark Russinovich and Bryce Cogswell at www.sysinternals.com have released
freeware utility Fundelete that replaces the Recycle Bin to add protection for
GUI and commandline deletes. Useful to Windows NT admin.
… any files you delete from within programs orThe source code to
the command prompt , which are not being filtered from protection, will be moved
to the Recycle Bin. Simply use the Fundelete Bin as you would for files deleted
from Explorer to recover deleted files.
undelete.c, is available and demonstrates several techniques that are useful for
device driver writers not documented anywhere else.