VB5/6 snippet to undelete file

Discussion in 'Programming' started by lordcenon, Dec 17, 2009.

  1. #1
    anyone who has visual basic 5 or 6 code snippet to undelete a file or folder and has been removed from recycle bin?
     
    lordcenon, Dec 17, 2009 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you have to do it programmatically as there is no API to do this according to my knowledge. Use of a 3rd party tool that support command line preferably can be a good option to you.
     
    NeoCambell, Dec 18, 2009 IP
  3. lordcenon

    lordcenon Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i need a short source code that will make me build one. I am tired of testing a variety of "try now and pay after" for the licensed version software.

    I know that the first byte of each file is converted to a '$', am I right, but to peek on the locations where the directory listing is tucked or is there a special locations on any drive, fixed or flashdrive, where the list can be found for all deleted files even if they had been trashed from the recycle bin?
     
    lordcenon, Dec 18, 2009 IP
  4. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If file system is FAT32, there is a master boot record (MBR) in sector 0. You can find the boot record sector of each drive from that. From boot record, you can find the FAT table, and start sector of first cluster. In FAT32, files and folders are stored in clusters. You can get a better explanation on FAT file system in this article.
     
    NeoCambell, Dec 19, 2009 IP