share (command)

In computing, share is a command for MS-DOS that allows software to perform file locks. Locking files became necessary when MS-DOS began allowing files to be accessed simultaneously by multiple programs, either through multitasking or networking.[1][2][3] The command is also available in FreeDOS.[4]

Design

There were five locking modes:

  • Deny None
  • Deny Read
  • Deny Write
  • Deny All
  • Compatibility (designed for backward compatibility with existing MS-DOS programs)

The program runs as a Terminate and Stay Resident program and is typically loaded at boot-up.

Syntax

share [/F:space] [/L:locks]

 /F:space Allocates file space (in bytes) for file-sharing information.
 /L:locks Sets the number of files that can be locked at one time.

See also

References

  1. Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, p. 206, ISBN 0078819040.
  2. http://www.easydos.com/share.html
  3. http://www.computerhope.com/sharehlp.htm
  4. http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/group-base.html
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.