Article View: comp.os.msdos.programmer
Article #495FILE LOCKING UNDER MS-DOS
From: SABU
Date: Sun, 26 Jul 1992 06:19
Date: Sun, 26 Jul 1992 06:19
32 lines
1909 bytes
1909 bytes
Hi,
I have to implement a module for file locking under msdos. Firstly
the environment is dos 5.0 programming in "C" and compiling with
Borland "C".
The objective is as follows-:
If a user or a process is using a file no other process or user
should be allowed access to a file. There are two cases I want to consider
the first one is in the case of networking if a process has placed
this lock no other process or user should be allowed access to this file
a message like "file currently locked by another user" should be
printed. However if the process that has placed this lock executes a
DOS shell and tries to access this file the same message should appear.
If the machine is not on the network then if the user has
placed a lock on a file and then executes a dos shell and tries to
access this file the user should be denied access and the appropriate
message should be printed.
Any help would be greatly appreciated.
Thanks,
sabu.
////////////////////////////////////////////////////////////////////////
/ Internet: SBHATIA@mary.fordham.edu /
/ BITnet: SBHATIA@FORDMULC /
/ /
/ /
////////////////////////////////////////////////////////////////////////
Technical Details
Message-ID:
<26JUL199202194285@mary.fordham.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!mary.fordham.edu!sbhatiaShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!mary.fordham.edu!sbhatia From: sbhatia@mary.fordham.edu (SABU) Subject: FILE LOCKING UNDER MS-DOS Organization: Fordham University Message-ID: <26JUL199202194285@mary.fordham.edu> News-Software: VAX/VMS VNEWS 1.41 Sender: news@ctr.columbia.edu (The Daily Lose) Date: Sun, 26 Jul 1992 06:19:00 GMT X-Posted-From: mary.fordham.edu X-Posted-Through: sol.ctr.columbia.edu Lines: 32