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!

listing and deleting files in a directory

Status
Not open for further replies.

random260

Programmer
Mar 11, 2002
116
US
It seems to me I remember there being an easy way to list and delete files in a directory - I just can't remember what they are lol. Could someone refresh my memory please? Just a quick example on putting all files that end with .who in a listbox would be great. And an example of the command to delete the file c:\temp\yourgone.bye.

Thanks
 
VB has a Dir and a Kill command. You can also look at the FileSystemObject.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top