Results 1 to 2 of 2

Thread: Find and Delete Multiple Instances of a File

  1. #1
    crw202
    Guest

    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?

  2. #2
    Megatron
    Guest
    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
  •  



Click Here to Expand Forum to Full Width