# Share (command)

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Share_(command)
> Markdown URL: https://mediated.wiki/source/Share_(command).md
> Source: https://en.wikipedia.org/wiki/Share_(command)
> Source revision: 1340790267
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Lowercase title}}
{{Infobox software 
| name                   = share
| logo                   = 
| screenshot             = 
| screenshot size        = 
| caption                = 
| developer              = [Microsoft](/source/Microsoft), [Paragon Technology Systems](/source/Paragon_Software_Group), [DR](/source/Digital_Research), [Datalight](/source/Datalight), [Novell](/source/Novell), Ron Cemer
| released               = {{Release year|df=yes|1984}}
| latest release version = 
| latest release date    = 
| operating system       = [MS-DOS](/source/MS-DOS), [PTS-DOS](/source/PTS-DOS), [SISNE plus](/source/SISNE_plus), [Windows](/source/Microsoft_Windows), [DR DOS](/source/DR_DOS), [ROM-DOS](/source/ROM-DOS), [FreeDOS](/source/FreeDOS)
| genre                  = [Command](/source/Command_(computing))
| license                = 
| website                = 
}}
In [computing](/source/computing), '''<code>share</code>''' is a [command](/source/command_(computing)) for [DOS](/source/DOS) that allows software to perform [file lock](/source/file_lock)s. Locking files became necessary when [MS-DOS](/source/MS-DOS) began allowing files to be accessed simultaneously by multiple programs, either through [multitasking](/source/computer_multitasking) or [networking](/source/computer_networking).<ref name="Jamsa1993">{{Citation
 | last1     = Jamsa
 | first1    = Kris A.
 | title     = DOS: The Complete Reference
 | publisher = [Osborne McGraw-Hill](/source/Osborne_McGraw-Hill)
 | page      = 206
 | year      = 1993
 | isbn      = 0078819040
 | url       = https://books.google.com/books?id=UW9GAAAAYAAJ
 | postscript= .
}}</ref><ref>{{cite web|url=http://www.easydos.com/share.html|title=DOS Command: SHARE}}</ref><ref>[http://www.computerhope.com/sharehlp.htm MS-DOS and Windows command line share command]</ref>

==Implementations==
On MS-DOS, the command is available in  versions 3 and later.<ref name="RUNNINGMSDOS">{{Cite book|author-last=Wolverton|author-first=Van|title=Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition|date=2003|publisher=[Microsoft Press](/source/Microsoft_Press)|isbn=0-7356-1812-7}}</ref> The command is also available in [FreeDOS](/source/FreeDOS),<ref>{{cite web|url=http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/group-base.html |title=FreeDOS 1.2 Updates Group - FreeDOS Base |publisher=Ibiblio.org |date= |accessdate=2022-09-08}}</ref> [PTS-DOS](/source/PTS-DOS),<ref>
{{cite web |title=PTS-DOS 2000 Pro User Manual |publisher=[Paragon Technology GmbH](/source/Paragon_Technology_GmbH) |location=Buggingen, Germany |date=1999 |url=http://download.paragon-software.com/doc/manual_dos_eng.pdf |access-date=2018-05-12 |url-status=live |archive-url=https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf |archive-date=2018-05-12}}</ref> and [SISNE plus](/source/SISNE_plus).<ref>{{Cite web |url=https://datassette.org/manuais/ibm-pc/sisne-plus-referencia-sumaria |title=SISNE plus - Referência Sumária {{!}} Datassette |access-date=2019-09-28 |archive-date=2019-09-28 |archive-url=https://web.archive.org/web/20190928211058/https://datassette.org/manuais/ibm-pc/sisne-plus-referencia-sumaria |url-status=dead }}</ref> The FreeDOS version was developed by Ron Cemer and is licensed under the [GPL](/source/GNU_General_Public_License).<ref>{{cite web|url=http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/share.html |title=FreeDOS 1.2 Updates Package - share (FreeDOS Base) |publisher=Ibiblio.org |date=2007-10-20 |accessdate=2022-09-08}}</ref> [DR DOS 6.0](/source/DR_DOS_6.0)<ref name="drdos6userguide">[https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf DR DOS 6.0 User Guide Optimisation and Configuration Tips]</ref> and [Datalight](/source/Datalight) [ROM-DOS](/source/ROM-DOS)<ref>{{cite web|url=https://www.datalight.com/assets/files/ROM-DOS_Users_Guide.pdf|title=Datalight ROM-DOS User's Guide|website=www.datalight.com}}</ref> include an implementation of the {{code|share}} command.

[Windows XP](/source/Windows_XP) and later versions include [16-bit](/source/16-bit) commands (nonnative) for the [MS-DOS subsystem](/source/Virtual_DOS_machine) that are included to maintain MS-DOS compatibility. The <code>share</code> MS-DOS subsystem command performs functions that are now inherent to [Microsoft Windows](/source/Microsoft_Windows). It is available to preserve compatibility with existing files, but has no effect at the [command line](/source/command-line_interface) because the functionality is automatic. The 16-bit MS-DOS subsystem commands are not available on [64-bit](/source/64-bit) editions of Windows.<ref>[https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490895(v%3dtechnet.10) MS-DOS subsystem commands]</ref>

==Design==
There were five locking modes:

*Deny None
*Deny Read
*Deny Write
*Deny All
*Compatibility (designed for [backward compatibility](/source/backward_compatibility) with existing MS-DOS programs)

The program runs as a [terminate-and-stay-resident program](/source/terminate-and-stay-resident_program) and is typically loaded at boot-up.

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

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

==See also==
*[List of DOS commands](/source/List_of_DOS_commands)

==References==
{{Reflist}}

==Further reading==
*{{Cite book|author-last=Cooper|author-first=Jim|title=Special Edition Using MS-DOS 6.22, Third Edition|date=2001|publisher=[Que Publishing](/source/Que_Publishing)|isbn=978-0789725738}}

{{DEFAULTSORT:Share (Command)}}
Category:External DOS commands

{{DOS-stub}}

---
Adapted from the Wikipedia article [Share (command)](https://en.wikipedia.org/wiki/Share_(command)) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Share_(command)?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
