Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ share(CMD) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 share(CMD)                      19 June 1992                      share(CMD)


 Name

    share - install file-sharing and locking capabilities on your hard disk

 Syntax


    share [/f:space] [/l:locks]

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

    install=[[drive:]path]share.exe [/f:space] [/l:locks]


 Parameter


    [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.


 Notes


    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.

    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.

 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 in-
    formation 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


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026