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?
Printable View
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?
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.