Use MAP to map drives and search drives to network directories.
MAP has the following command format:
MAP [option] [drive:=path]
Replace drive with any valid network drive letter, local drive letter, or search drive number.
Replace path with a drive letter, a full directory path, or a Directory Map object.
More than one command can be on the map line if the commands are separated by a semicolon (;), as shown in the following example:
MAP *1:=SYS:PUBLIC;*2:=SYS:PUBLIC\DOSWhen mapping a drive to a directory on an NDS server, begin the path with either the Volume object name or server/volume.
When mapping to a directory on a bindery-based server or to an NDS server that is not your current server, begin the path with the server's name.
Replace option with one of the following:
Since you may not want users to have rights at the root directory, you can map a fake root to a subdirectory instead. This option is valid in login scripts and at the command line.
This option is valid only at the command line.
It is possible to have a Volume object name that conflicts with a physical volume name. (For example, object ACCT is an Accounting volume, but there is also an ACCT which is a physical volume.)
Therefore, if you prefer to map a drive to the physical volume name, use MAP P. This option is valid in login scripts and at the command line.
Follow these guidelines when using MAP:
This allows drive letters to reorder themselves automatically when local drives are removed or added or when the first network drive is changed.
This also allows users to log in from workstations that have a different number of local drives than their regular workstation.
This drive mapping is used by OS/2 workstations, as explained in NetWare Client for OS/2 User Guide.
For DOS and Windows workstations, you can map search drives to directories that contain applications, executable files, and so forth. Then users can execute those applications regardless of the directory in which they are currently working.
A maximum of 16 NetWare search drives is allowed.
When you map a search drive, use a search drive number (an S followed by a number). This search drive number assigns the next available drive letter to the mapping, starting with Z and working backwards through the English alphabet.
The letter assigned to the search drive is
put into the DOS path statement. If you
already have search drives in the path statement,
the command MAP S1:= will overwrite the first
one in the path. To prevent search drive
assignments from overriding existing DOS PATH letters, use
the INSERT option when assigning search drives. For
example, type
MAP INS S16:=path
To ensure that users can access NetWare utilities, DOS directories, and applications, we recommend you map search drives to these directories in the following order:
This command assigns the next available drive letter to the search drive without displacing the previous search drives.
If you have an application that requires a
particular drive letter, you can use the following
command to map the search drive, replacing drive
with the drive letter:
MAP S16:=drive:=path
If you map a search drive using a number already assigned to a search drive, NetWare makes the old search drive a network drive. The letter assigned to the old search drive remains assigned as the converted drive mapping. The new search drive takes the next unused letter of the alphabet.
Another way to map a drive to a directory is to create a Directory Map object that points to the directory. Then, if you move the directory, you only need to change the Directory Map object rather than all of the login scripts that may include that mapping.
For example, to map a search drive to a Directory Map object whose complete name is APPL.SALES_LA.ACME_US, add the following line to the login script:
MAP S2:=.APPL.SALES_LA.ACME_USIn the previous example, the Directory Map object's name begins with a period, which indicates that the drive is mapped to the drive Root.
If the user whose login script this line appears in is also located in the SALES_LA.ACME_US context, the MAP command does not have to specify the Directory Map object's complete name. Instead, the line would be
MAP S2:=APPLFor more information about using Directory Map objects, see ``Loading operating systems and applications onto the network''.
For example:
MAP S1:=SYS:PUBLICThe second search drive should be mapped to the DOS directory if users run DOS from the network.
To use variables for the DOS directory path, enter the following command in the login script:
MAP S2:=SYS:PUBLIC\%MACHINE\%OS\%OS_VERSION
MAP S2:=SYS:PUBLIC\IBM_PC\MSDOS\50You can also create a Directory Map object that points to the DOS directory, then map the search drive to the Directory Map object.
For more information about creating DOS directories, see ``Loading operating systems and applications onto the network''.
MAP S16:=SYS:APPL\WORDPROCIf you have mapped a Directory Map object to this directory, you can substitute the Directory Map object's name for the directory path.
For example, suppose you created a Directory Map object called WPROC, which is located in the context SALES.ACME_US, and mapped that object to the SYS:APPL\WORDPROC directory.
Following the rule of no complete names in a login script, you would create an alias in your own context to the object in SALES.ACME_US. Then use the following line in your login script:
MAP S16:=WPROC
You can map a fake root to the directory and map a search drive to it at the same time by adding the following line to the login script:
MAP ROOT S16:=P:=SYS:APPL\FORM
MAP *1:=VOL1:HOME\RICHARD MAP *2:=SYS:PUBLIC\OS2 MAP *3:=VOL1:ACCOUNTS\REPORTS MAP *4:=VOL1:UPDATES\PROJECTSTo map Richard's fifth drive to the PUBLIC directory on a NetWare 3.11 server named FS1, you need to include the server name in the MAP command. Use the following line in your login script:
MAP *5:=FS1\SYS:PUBLIC
If you are mapping a drive to a volume that is not in your current context, first create an alias to that volume; then include the volume's common name in the MAP command.
For example, if the complete name of a volume not in your current context is VOL1.SALES.ACME_US, then create an alias named VOL1: to that volume. The MAP command would include only this common name.
To map a drive to the APPL directory in this volume, the line in the login script would be
MAP *6:=VOL1:APPL