Home > Archive > Fortran > March 2008 > Preventing file sharing
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Preventing file sharing
|
|
| johnharwood@arrakis.es 2008-03-24, 8:12 am |
| Although I suspect that this may be a Windows question, maybe somebody
has been here before!
Using IVF and Windows XP Professional, if a file is opened with the
specifier NOSHARED and then I attempt to open it again with, say
Notepad, access is denied. Great. However, if a file is already
opened with Notepad, it is successfully opened again by my program.
How do I prevent this from happening? The various INQUIRE options
return Opened=false, Share=unknown, Access=undefined
| |
| Steve Lionel 2008-03-24, 8:12 am |
| On Mar 24, 8:20 am, "johnharw...@arrakis.es" <johnharw...@arrakis.es>
wrote:
> Although I suspect that this may be a Windows question, maybe somebody
> has been here before!
>
> Using IVF and Windows XP Professional, if a file is opened with the
> specifier NOSHARED and then I attempt to open it again with, say
> Notepad, access is denied. Great. However, if a file is already
> opened with Notepad, it is successfully opened again by my program.
> How do I prevent this from happening? The various INQUIRE options
> return Opened=false, Share=unknown, Access=undefined
Add ACTION='READWRITE' to the OPEN. When ACTION is not specified, IVF
will quietly open the file for read-only access if write access is not
available.
Steve
|
|
|
|
|