|
-
Oct 24th, 2001, 04:36 PM
#1
Find and Delete Multiple Instances of a File
I'm trying to write code that will find any instances of a particular file on the user's hard drive and delete it without user intervention. Any ideas?
-
Oct 25th, 2001, 02:48 PM
#2
Use VB's Dir() function (or the FindFirstFile, and FindNextFile API's) to find the file. You'll have to develop your own recrusive function to find the files though.
To "silently" delete the file, assuming it's not in use, use VB's Kill function.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|