How-To... - Delete A File Using The Kill Statement

DodgeSoft Productions - How To -- Dir FunctionDeleting 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


This site is Copyright © 1999 of David Cowan. VB How-To, Dodgesoft and DodgeSoft Productions is Copyright © 1999 of David Cowan. Source-code and programs are copyright of their respective owners. For a messageboard, click here