Results 1 to 6 of 6

Thread: Networked Program Question??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    16

    Networked Program Question??

    Is there an easy way to determine if someone else on a network already has a VB 6 program or any associated file open? Thanks in advance! TeeTime

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

    Re: Networked Program Question??

    To determine what is running on any given machine means you would have to connect to that machine, even if the program they are running resides on the network.

    I don't believe you can tell what language a running .Exe was compiled in.

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Networked Program Question??

    If the file is opened with a lock, then you can check it. Program files aren't locked when they are open, so you would have to have the program write a flag while it was opened, and have other programs look for that file.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    16

    Re: Networked Program Question??

    Thanks...but I have tried creating a temporary file and leave it open. I then accessed the temporary file (was openned by the other program), and had no problem accessing it. If I create a file and then the program is halted abnormally (program that created it didn't get a chance to kill/delete it), the temporary file will remain and it will always look like someone else is using the file. So, I guess I still need help. Thanks, Al

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Networked Program Question??

    You have to open the file WITH LOCK READ so that others can't open it.
    When the program crashes, or you want to terminate it, you close the file.
    Just open it with lock, and don't read anything from it. Others won't be able to open it. Access does this with a .ldb file.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    16

    Thumbs up Re: Networked Program Question??

    Thanks...that was the missing piece. Worked GREAT!! TeeTime

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