04-29-2011 08:59 AM
Hi All
How can i lock a file from been used else were while my program is open?
04-29-2011 10:27 AM
I'm not aware of a way to lock file access using native CVI functions.
You can obtain this by using Windows API functions like CreateFile with the appropriate attributes or LockFile on an unlocked, opened file; you will need of course to continue using Win32 APIs to read/write to the file, as the system handle is not compatible with CVI file functions.
05-03-2011 02:03 AM
Thanks i will have a look into the WinAPI.