share (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.[1][2][3]

share
Developer(s)Microsoft, Paragon Technology Systems, DR, Datalight, Novell, Ron Cemer
Initial release1984, 3637 years ago
Operating systemMS-DOS, PTS-DOS, SISNE plus, Windows, DR DOS, ROM-DOS, FreeDOS
TypeCommand

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.0[9] and Datalight ROM-DOS[10] 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

References

Further reading

  • Cooper, Jim (2001). Special Edition Using MS-DOS 6.22, Third Edition. Que Publishing. ISBN 978-0789725738.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.