Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete a file from VB command

Status
Not open for further replies.

sisan

Programmer
Jan 9, 2002
39
ID
Sorry, I'm asking a simple question, because I really don't know how to do this simple thing:

How to delete a file in a specific folder by command in VB ?
e.g:
I want to delete the file "C:\MyFolder\MyFile.txt"

Thanx for your help !

 
The command would be
kill "C:\myfolder\myfile.txt"

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top