Results 1 to 11 of 11

Thread: file shredder in vb?[resolved]

  1. #1

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    file shredder in vb?[resolved]

    hey does anyone know if its even possible to make a file shredder in vb? or is it not powerful enough to delete data at that level?
    Last edited by dark_shadow; Jan 7th, 2007 at 12:29 PM.

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: file shredder in vb?

    You need to access the HDD at low level... not with VB exclusively (with dll's written in other languages) if I'm not mistaken.

  3. #3

  4. #4
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: file shredder in vb?

    It could be written on another portion of the HDD just like memory allocation with FAT/etc table updated accordingly... the previously written data on the HDD is still there (until overwritten by another HDD operation) and can be read with low level HDD access recovery apps.

    Unless I misinterpreted his question (he just wants to corrupt file data) and went overboard ^^

  5. #5

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: file shredder in vb?

    i dont know if you over stepped it or not basically there are shredders that you can get that completely deletes files off of a hdd and i didnt know if you could still access it from vb ot you need a more powerful language to do it

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

    Re: file shredder in vb?

    Post #2 would seem to be your best bet.

  7. #7

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: file shredder in vb?

    hmm alright what language would you say the dlls would be coded in ? c++ probally ?

  8. #8
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: file shredder in vb?

    Quote Originally Posted by dark_shadow
    hmm alright what language would you say the dlls would be coded in ? c++ probally ?
    Most likely.

  9. #9

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: file shredder in vb?

    hmm alright thanks for the replies i'll look in to it

  10. #10
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: file shredder in vb?[resolved]

    You could also try posting in the C++ forum.

  11. #11
    Member
    Join Date
    Oct 2006
    Posts
    46

    Re: file shredder in vb?[resolved]

    You need to access the HDD at low level... not with VB exclusively (with dll's written in other languages) if I'm not mistaken.
    Neither C++ nor ASM have more priviledges then VB in a user process.
    That means every single bit a C++ program can do in a user process
    can also be done by a VB program.

    Code:
        Dim btSector(511) As Byte
        
        Open "\\.\C:" For Binary As #1
            Get #1, , btSector
        Close #1
    Will read the first sector of drive C into btSector.
    Works very well on XP with admin priviledges, should also work on 2k, may work on NT (if not, use CreateFile() API with correct access flags).
    On 98/Me you can use some DeviceIoControl() to read or write directly to the drive.
    http://vbcity.com/forums/topic.asp?tid=6975
    Doesn't have 64 bit integer support, but that's not that hard to add.

    It could be written on another portion of the HDD just like memory allocation with FAT/etc table updated accordingly...
    I doubt that. There is no reason to do so as long as you don't append bytes to the file.
    I think there is an API for flushing the write cache to disk.

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