Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
share (command)
MS-DOS command

In computing, share is a command for 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.

We don't have any images related to share (command) yet.
We don't have any YouTube videos related to share (command) yet.
We don't have any PDF documents related to share (command) yet.
We don't have any Books related to share (command) yet.
We don't have any archived web articles related to share (command) yet.

Implementations

On MS-DOS, the command is available in versions 3 and later.4 The command is also available in FreeDOS,5 PTS-DOS,6 and SISNE plus.7 The FreeDOS version was developed by Ron Cemer and is licensed under the GPL.8 DR DOS 6.09 and Datalight ROM-DOS10 include an implementation of the share command.

Windows XP and later versions include 16-bit commands (nonnative) for the MS-DOS subsystem that are included to maintain MS-DOS compatibility. The share MS-DOS subsystem command performs functions that are now inherent to Microsoft Windows. It is available to preserve compatibility with existing files, but has no effect at the command line because the functionality is automatic. The 16-bit MS-DOS subsystem commands are not available on 64-bit editions of Windows.11

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

Further reading

  • Cooper, Jim (2001). Special Edition Using MS-DOS 6.22, Third Edition. Que Publishing. ISBN 978-0789725738.

References

  1. Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, p. 206, ISBN 0078819040. 0078819040

  2. "DOS Command: SHARE". http://www.easydos.com/share.html

  3. MS-DOS and Windows command line share command http://www.computerhope.com/sharehlp.htm

  4. Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7. 0-7356-1812-7

  5. "FreeDOS 1.2 Updates Group - FreeDOS Base". Ibiblio.org. Retrieved 2022-09-08. http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/group-base.html

  6. "PTS-DOS 2000 Pro User Manual" (PDF). Buggingen, Germany: Paragon Technology GmbH. 1999. Archived (PDF) from the original on 2018-05-12. Retrieved 2018-05-12. http://download.paragon-software.com/doc/manual_dos_eng.pdf

  7. SISNE plus - Referência Sumária | Datassette https://datassette.org/manuais/ibm-pc/sisne-plus-referencia-sumaria

  8. "FreeDOS 1.2 Updates Package - share (FreeDOS Base)". Ibiblio.org. 2007-10-20. Retrieved 2022-09-08. http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/share.html

  9. DR DOS 6.0 User Guide Optimisation and Configuration Tips https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf

  10. "Datalight ROM-DOS User's Guide" (PDF). www.datalight.com. https://www.datalight.com/assets/files/ROM-DOS_Users_Guide.pdf

  11. MS-DOS subsystem commands https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490895(v%3dtechnet.10)