
How-To... - Delete A File Using The Kill Statement
Deleting
a file through the Windows system is easy. Just select the file and press
Delete. Deleting a file through Visual Basic is just as easy. To delete a
file, you need to use the Kill function. The syntax for the Kill statement
is as follows:-
Kill pathname
For example, if you want to delete the file "C:\Bootlog.txt" then
you would use Kill "C:\Bootlog.txt"
You can download the source code by clicking here