Hi,
Part of a program that I run overnight is supposed to copy a dbf file from one network drive and overwrite the same file on the "live" drive.
This is sometimes failing because the table on the "live" drive is being held open by some user or other.
How can I check if a table is available to open exclusively - and is therefore overwriteable? I thought fopen() did this, but if another user has the table open it returns a correct handle, not -1.
Thanks for any help,
Stewart
Part of a program that I run overnight is supposed to copy a dbf file from one network drive and overwrite the same file on the "live" drive.
This is sometimes failing because the table on the "live" drive is being held open by some user or other.
How can I check if a table is available to open exclusively - and is therefore overwriteable? I thought fopen() did this, but if another user has the table open it returns a correct handle, not -1.
Thanks for any help,
Stewart