Results 1 to 2 of 2

Thread: Determining if a file is locked

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    15

    Post

    I am trying to delete several files from a directory. Before I start deleting I want to test each file to see if it is open by another progam. What is the api I can use to accomplish this?

  2. #2
    Junior Member
    Join Date
    Apr 1999
    Location
    Bangalore, KA, India
    Posts
    18

    Post

    use the KILL command as follows

    Kill("the path of your filename")

    This will rise error number 75 if the file is locked by an application.

    Cheers!!

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