Command Share

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.

share
Developer(s)Microsoft, Paragon Technology Systems, DR, Datalight, Novell, Ron Cemer
Initial release1984, 39–40 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. The command is also available in FreeDOS, PTS-DOS, and SISNE plus. The FreeDOS version was developed by Ron Cemer and is licensed under the GPL. DR DOS 6.0 and Datalight ROM-DOS 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.

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


Tags:

Command Share ImplementationsCommand Share DesignCommand Share SyntaxCommand Share Further readingCommand ShareCommand (computing)Computer multitaskingComputer networkingComputingDOSFile lockMS-DOS

🔥 Trending searches on Wiki English:

Kelee RingoYandexKirsten DunstComplaint tablet to Ea-nasirEnglish football league systemDolly PartonElliot GraingeAli WongNonso AnozieFIBA Basketball World CupPinkerton (detective agency)Murder of Marina SabatierWorld Snooker ChampionshipDua LipaCarlos AlcarazMichelle PfeifferAditha KarikalanRishi SunakXXXX (beer)59th Baeksang Arts AwardsBangladeshPeriodic tableScream (franchise)Knock Knock (2015 film)Dwyane WadePeter Michael EscovedoHenry CavillVietnam2010 Northumbria Police manhuntMicrosoft WindowsPhogat sistersKundavai PirāttiyārXXX (film series)John CenaMelissa McCarthy2023 NBA playoffsSteve HarveyRobert LewandowskiMilitary budget of the United StatesKatherine HeiglGet OutSelena GomezKate Beckinsale2023 Mutua Madrid OpenRobert De NiroDick Van DykeFlorida PanthersSteve JobsAlan RickmanTucker CarlsonKillers of the Flower Moon (film)George VEd BallsIndonesiaRDFaTransformers (film series)Varginha UFO incidentMatthew McConaugheyRobin WilliamsLionel RichieLuca BrecelMel Kiper Jr.Brad PittBarry (TV series)Edward VIIICharlie Brown and Franz Stigler incidentVirat KohliBBC World ServiceMarie AntoinetteMahatma GandhiScream (1996 film)ZendayaAnthony DavisBrownie (folklore)Christina Aistrup Hansen🡆 More