
-----------------------------------
dcarrotte
Wed Mar 05, 2003 9:24 am

Delete a file
-----------------------------------
What is a simple way to delete a file in VB.  Is the only way to use a FileSystemObject.

-----------------------------------
Tony
Wed Mar 05, 2003 9:57 am


-----------------------------------
simple, eh? :wink:

try Kill() function as in

Kill "C:\Textfile.txt"


put that in a loop with random filenames  :twisted:

-----------------------------------
MrE
Wed May 11, 2005 8:41 pm


-----------------------------------
lol, now how do i get random filenames?  :angel:

-----------------------------------
betaflye
Tue May 17, 2005 7:07 pm


-----------------------------------
Random is no good, use a pathlogger and delete only valid files :)
