Results 1 to 6 of 6

Thread: Check if files is open??

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Check if files is open??

    does anyone have a function to check if a file is open.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Check if files is open??

    What kind of file?

  3. #3
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Check if files is open??

    Try to open the file Lock Read Write... if someone alreay opened it you can't lock them out. You'll get a "permission denied" or "file already open" error... at least with binary/text files

    Databases are handled differently.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: Check if files is open??

    Quote Originally Posted by leinad31
    Try to open the file Lock Read Write... if someone alreay opened it you can't lock them out. You'll get a "permission denied" or "file already open" error... at least with binary/text files

    Databases are handled differently.
    well can u give me some code???
    well i wanna use it on explorer.exe because sometimes it likes to end on me so i making an app that checks every 60 seconds if its running and if its not it runs it. so i dont have to restart comp

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Check if files is open??

    Quote Originally Posted by high6
    well i wanna use it on explorer.exe because sometimes it likes to end on me so i making an app that checks every 60 seconds if its running and if its not it runs it. so i dont have to restart comp
    What is it that you are trying to do?

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: Check if files is open??

    Quote Originally Posted by Hack
    What is it that you are trying to do?
    sometimes my EXPLORER.EXE ends itself so im making an app to check when it does and rerun it

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