by John Galanopoulos (10 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (5 Votes)
Completely destroy a file with no chance of recovery or trace. Use of CreateFile,
FILE_FLAG_NO_BUFFERING
(Open the file with no intermediate buffering or caching)
FILE_FLAG_WRITE_THROUGH
(Write through any intermediate cache and go directly to disk)
and also FlushFileBuffers function to ensure that file buffers will be flushed!
A must test and see.
Inputs
The File you wish to delete
Code Returns
The results for your action
Side Effects
Handle with care. No way to restore the file after deletion.
API DeclarationsPlease use this version of my program.
Download Wipe out a file using Windows API. No traces, no recover. (4 KB)