Results 1 to 2 of 2

Thread: can not delete the file?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    362

    can not delete the file?

    I'm working on a program. It watches a folder for file changes. in certain cases, it needs delete the files in that folder. sometimes, it has this error:

    The action can't be completed because the file is open in another program

    is there a way to force delete a file? or this is not possible?

    thanks

    bear

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: can not delete the file?

    If the file is locked by a program then it can't be deleted.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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