Anybody know how to do that ? I need to run the same program at different
win2k machine.
My situation :
MachineA (win2k) -> run myprogram.exe
MachineB (win2k) -> run myprogram.exe
MachineC(linux, fileserver). -> shareFile1.txt
both myprogram.exe may open shareFile1.txt at MachineC at the same time. And
i need to prevent this.
Only 1 guy can access(open/read/write) shareFile1.txt at the same time.
Anybody know how to solve it ?
Thank you very much.
Regards,
Leornard.
> I'm using _fsopen("\\\\linux\sharefile", "at", _SH_DENYWR).
_SH_DENYWR only denies writes. The other thing I would check is, if the
file resides on an NT box, does the sharing work (well, _not_ work) as
you expect?
--
Cheers,
Felix.
If you post a reply, kindly refrain from emailing it, too.
Please consider migrating to microsoft.public.platformsdk.*
where the MS folks plan on hanging around. See you there!