r-
I
['
i
r
, .
I'
I
I'
I
Chapter 6 / Command Reference
SHARE External
I
~
1 SHARE [IF:space]
[lL:locks]
Installs
file
sharing
and
locking
for
active networking.
Parameters
/F:space allocates file space (in bytes)
for
recording file
sharing
information.
Each
open file needs
the
length of
the
full filename
plus
11
bytes. The average
pathname
is 20 bytes. The default
value is 2048 bytes.
L:locks specifies
the
number
of locks allowed. The default is 20.
Notes
and
Suggestions
• Once you use SHARE
in
an
MS-DOS session, SHARE checks
all read
and
write
requests.
•
MS-DOS
uses
SHARE
only
when
networking
is
active.
Include
the
SHARE command
in
the
AUTOEXEC.BAT file
if
you wish to
install
shared
files
at
startup.
Example
share
/f:4096
/1:30
doubles
the
default
number
of bytes
for
the
storage of file
sharing
information, and increases
the
number
of allowable locks to 30.
169