Results 1 to 2 of 2

Thread: Securly Deleting a file??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    Hi,
    Can anyone explain to me how to securly delete a file using VB codes?

    Also I don't know much about writing to a file in VB, but what I want to know is how to overwrite the content of a file BIT by BIT.


    an example would be greatly appreciated.
    Thanks
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post Write all blanks!

    Open it for output, write all blanks, then delete. Almost guaranteed!

    ------
    Open "MyFile.txt" for output as #1
    For I = 1 to LOF(1)
    Print #1, " " '(a space)
    Next
    Close
    Kill "MyFile.txt"
    ------

    If anyone could un-delete your file, will find only empty spaces.

    HTH!

    P.S. Replace MyFile.txt with the actual name of your file, complete with path, directories etc.

    Edited by Juan Carlos Rey on 03-12-2000 at 08:13 PM

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