Command Descriptions
Advanced User’s Guide
B-19
Purpose
SHARE
installs the capabilities for file-sharing and file-locking on the hard
disk.
Syntax
SHARE [/
options
]
Or from
CONFIG.SYS
:
INSTALL=[
drive:
][
path
]SHARE.EXE [/
options
]
Remarks
The
SHARE
utility is most commonly used in a network or multitasking
environment where file sharing is necessary. When
SHARE
is loaded, DOS will
utilize the
SHARE
utility to validate read and write requests from application
programs and users.
The
/L:
#
option specifies the maximum number of files that can be locked at
one time. The default number of files is 20.
The
/U
option unloads the share utility and frees the memory.
SHARE
will not
unload if other TSRs have been loaded on top of it. The other TSRs must be
unloaded first before trying to unload
SHARE
.
Examples
The following example loads the
SHARE
program from the command line:
SHARE
The next example installs
SHARE
from the CONFIG.SYS file and changes the
maximum number of locked files to 30:
INSTALL=C:\UTILS\SHARE.EXE /l:30
The final example unloads
SHARE
and frees the used memory.
SHARE /U
SWITCHES
Type
CONFIG.SYS
Purpose
The
SWITCHES
command allows special
CONFIG.SYS
file options.
advuser.book Page 19 Friday, September 27, 2002 4:22 PM