Results 1 to 7 of 7

Thread: How to read deleted files?

  1. #1

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    How to read deleted files?

    When you delete a file from the recycle bin or just plan delete it, I understand that the file is not truely deleted until another file overwrites it.

    Is there anyway to read memory to see the recently delete files?

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: How to read deleted files?

    I've done it with old DOS undelete tools that used to be around. Haven't tried it on WinXP, and they may not work, since they were written for FAT32 rather than NTFS that is the new file system. All deleted files appeared with the first character turned into something else. You could restore the file by renaming that first character.
    My usual boring signature: Nothing

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to read deleted files?

    Assuming you mean "programmatically" delete files from the recycle bin, what development platform are you using?

  4. #4

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: How to read deleted files?

    Quote Originally Posted by Hack
    Assuming you mean "programmatically" delete files from the recycle bin, what development platform are you using?
    I mean programmatically, I am using Windows XP Professional.

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to read deleted files?

    Quote Originally Posted by Jumpercables
    I mean programmatically, I am using Windows XP Professional.
    XP is your operating system. I mean what programming language do you want to attempt this in?

  6. #6

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: How to read deleted files?

    Quote Originally Posted by Hack
    XP is your operating system. I mean what programming language do you want to attempt this in?
    Doh, Long day at work. I plan to do this in C# with .NET 2005.

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  7. #7
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: How to read deleted files?

    I would guess that you can't directly. I believe that managed code means that the OS will give you a chunk of memory, and map all addresses into that memory space. This would mean that you wouldn't get to see the actual bytes at the addresses you use, but the bytes at the addresses that have been mapped for you to see. Thus if you read Byte 0, it isn't the Byte 0 of physical memory, but is byte 0 starting at the address offset the OS has allocated to your program. Since the file won't be in that memory space, you'd at LEAST need an API call to get at raw memory.
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width