Re: Can a file be blocked for anyone at network level?

Tech-Archive recommends: Fix windows errors by optimizing your registry



AFAIK it will be suffucient to call CreateFile ( ... FILE_SHARE_READ .... )
parameter, so that file will be shared only for reading... Network
redirector will do the rest of the job.
However, do not forget that "client" has to have sufficient permissions to
open file in that mode ( in NTFS )...

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Pablo J. Royo" <PabloJRoyo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9F56F45C-AA8E-448A-B053-806427B7773E@xxxxxxxxxxxxxxxx
> Hello:
>
> I need to block a file stored in a server from a "client" computer, so
> anybody wouldn?t be able to write in it as long as the "client" hold the
> lock.
> How can I achieve this?
> Will LockFile work also at network level as it does at local level?
>
> Thanks
>


.



Relevant Pages

  • Re: DBF file greyed out at runtime Foxpro 2.6
    ... the screen very quickly and OPEN file dialog box appears. ... Our client ... Might, Courage, Vision, SINCERITY. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Advanced Server: file locking
    ... Open File Cache is not likely related to this problem. ... line, Open file, read next line, close file process read line, etc". ... than having VMS close the file each time the client says to close, ...
    (comp.os.vms)
  • Re: =?UTF-8?B?T3BlbiBmaWxlIG9mIGNsaWVudCdzIHBjIGluIHJlYWQgbW9kZS4=?=
    ... One more thing if it is possible to open file which is there on ... An asp.net application lives on the server and communicates with the client using plain html. ... Security restrictions prohibit reading files on that client. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Advanced Server: file locking
    ... > Open File Cache is not likely related to this problem. ... > than having VMS close the file each time the client says to close, ... >>mit freundlichen Grüßen | with best regards ...
    (comp.os.vms)