Sideway
output.to from Sideway
Draft for Information Only

Content

MS DOS Command: SHARE.EXE
 Description
 Syntax
 Parameters
 Switches
 Remarks
  Common use of Share
  Allocating space for file-sharing information
  Using Share with Microsoft Flash File System
 Examples

MS DOS Command: SHARE.EXE

Reference from Microsoft MS-DOS cmd help

Description

Starts the Share program, which installs file-sharing and locking capabilities on your disks and network drives.

Syntax

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

In your CONFIG.SYS file, use the following syntax:

INSTALL=[[drive:]path]SHARE.EXE [/F:space] [/L:locks]

Parameters

[drive:]path Specifies the location of the SHARE.EXE file.

Switches

/F:space Allocates file space (in bytes) for the MS-DOS storage area used to record file-sharing information. The default value is 2048.
/L:locks Sets the number of files that can be locked at one time. The default value is 20.

Remarks

Common use of Share

Typically, you use SHARE in a network or multitasking environment in which programs share files. SHARE loads the code that supports file-sharing and locking in these environments. Once you install Share, MS-DOS uses the code loaded by Share to validate all read and write requests from programs. For example, if two people are accessing the same data file, SHARE manages the file so both people do not write to the file at the same time.

Allocating space for file-sharing information

When deciding how many bytes to allocate for file sharing, note that each open file requires enough space for the length of the full path and filename. The average length of a filename and its path is 20 bytes.

Using Share with Microsoft Flash File System

Share may be required in order to run some applications with Microsoft Flash File System.

Examples

The following example shows how you can use the INSTALL command in your CONFIG.SYS file to load Share, with the default values for the /F and /L switches. MS-DOS searches for the file SHARE.EXE in the DOS directory on drive C.

install=c:\dos\share.exe

The following example allocates 4096 bytes for storing file-sharing information and specifies that 25 files can be locked at one time. Again, MS-DOS searches for SHARE.EXE in the DOS directory on drive C:

install=c:\dos\share.exe /f:4096 /l:25


©sideway

ID: 110700256 Last Updated: 7/30/2011 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Travel 18

Reference 79

Computer

Hardware 254

Software

Application 213

Digitization 37

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 431

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019