home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8089 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!mary.fordham.edu!sbhatia
  3. From: sbhatia@mary.fordham.edu (SABU)
  4. Subject: FILE LOCKING UNDER MS-DOS
  5. Organization: Fordham University
  6. Message-ID: <26JUL199202194285@mary.fordham.edu>
  7. News-Software: VAX/VMS VNEWS 1.41    
  8. Sender: news@ctr.columbia.edu (The Daily Lose)
  9. Date: Sun, 26 Jul 1992 06:19:00 GMT
  10. X-Posted-From: mary.fordham.edu
  11. X-Posted-Through: sol.ctr.columbia.edu
  12. Lines: 32
  13.  
  14. Hi,
  15.  
  16.     I have to implement a module for file locking under msdos. Firstly
  17. the environment is dos 5.0 programming in "C" and compiling with 
  18. Borland "C". 
  19.  
  20.     The objective is as follows-:
  21.  
  22.     If a user or a process is using a file no other process or user 
  23. should be allowed access to a file. There are two cases I want to consider
  24. the first one is in the case of networking if a process has placed
  25. this lock no other process or user should be allowed access to this file
  26. a message like "file currently locked by another user" should be
  27. printed. However if the process that has placed this lock executes a
  28. DOS shell and tries to access this file the same message should appear.
  29.  
  30. If the machine is not on the network then if the user has
  31. placed a lock on a file and then executes a dos shell and tries to
  32. access this file the user should be denied access and the appropriate
  33. message should be printed.
  34.  
  35. Any help would be greatly appreciated.
  36.  
  37. Thanks,
  38.  
  39. sabu. 
  40. ////////////////////////////////////////////////////////////////////////
  41. /   Internet:  SBHATIA@mary.fordham.edu                                /
  42. /   BITnet:    SBHATIA@FORDMULC                                        /
  43. /                                                                      /
  44. /                                                                      /
  45. ////////////////////////////////////////////////////////////////////////
  46.