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
Printable View
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
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.
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.
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
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.
Thanks...that was the missing piece. Worked GREAT!! TeeTime