From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-24-2007 06:35 AM
01-24-2007 07:04 AM
I'm not sure whether this would work on a network drive, but I believe it will.
When you use the Open File function, you have an input called Deny Mode. You can use this to deny other users write access until you close the file.
I assume that if you try to open the file with write permissions after another user opened it it will return an error. You can catch this error, display the message and open the file again with read-only permissions.
01-24-2007 02:24 PM
01-24-2007 02:56 PM
Does Excel tell you who is using the other file?
If yes, does it do this only for its own file types or also for files like CSV or TXT?
If it only does it for its types, then this is probably built into the definition of the file somehow (although I would assume that would mean that everytime Excel opens the file it also needs to save it?).
I would try checking in the MSDN whether this is something that Windows supports.
If not, the only option that comes to mind is the INI file you suggested.