Open the file in binary mode, and overwrite it 5 times with random data prior to deleting it. Get the random data from the RNGCryptoServiceProvider class in System.Security, not the VB built-in method Random()
Note that this overwrite method won't work on flash drives because of the way they rotate write locations.
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first