Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file properties

Status
Not open for further replies.

Sherak

Programmer
Sep 1, 2003
83
GB
If I open a file with a program and I write another program which wants to open the same file, is ther a property I can check to see if the file is already open by another program ?.

thanks
 
That depends on OS and what mode your'e opening it in.
If you open it with write-access and no share (NT+) the second program trying to open it will fail, getting error codes indicating that file is taken by other program.

Look in the help for "CreateFile(...)", there is a thourough description on OS and sharing.

Totte
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top