MS-DOS Commands
871
Share
Share
Purpose:
Installs file sharing and locking.
Syntax:
share
[/f:space )[1L:locks I
Comments:
You can see
the
share
command only
when
networking is active.
If
you
want
to
install shared files, you can include
the
share
com-
DO
mand in your autoexec.
bat
file.
To
learn
more
about
shared files,
see
the
Microsoft
Networks
Manager's
Guide.
MS·DOS has a storage area that
it
uses
to
record
file sharing infor-
mation;
to
allocate file space
(in
bytes)
for this area, you use
the
If:space switch.
Each
open
file requires enough space for
the
length
of
the
full
filename plus
11
bytes, since
the
average pathname is
around
20
bytes in length. The default value for
the
If
switch is 2048.
The
1L:locks switch allocates
the
number
of
locks you
want
to
allow. The default value for
the
IL
switch
is
20.
Once
you have used
the
share
command
in an MS-DOS session, all
read and write requests are checked by
MS-DOS.
Example:
The
following example loads file sharing and uses
the
default
values for
the
If
and
IL
switches:
share
Loading the share
command