Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Delete a file
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dcarrotte




PostPosted: Wed Mar 05, 2003 9:24 am   Post subject: Delete a file

What is a simple way to delete a file in VB. Is the only way to use a FileSystemObject.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Mar 05, 2003 9:57 am   Post subject: (No subject)

simple, eh? Wink

try Kill() function as in
code:

Kill "C:\Textfile.txt"


put that in a loop with random filenames Twisted Evil
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
MrE




PostPosted: Wed May 11, 2005 8:41 pm   Post subject: (No subject)

lol, now how do i get random filenames? Angel
betaflye




PostPosted: Tue May 17, 2005 7:07 pm   Post subject: (No subject)

Random is no good, use a pathlogger and delete only valid files Smile
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: