A Directory Map object represents a particular directory in the file system.
Directory Map objects can be especially useful in login scripts by indicating directories that contain applications or other frequently used files.
For example, if you have a directory that contains DOS 5.0, you will probably map a search drive to that directory in any login scripts you create.
If you should later upgrade to DOS 6.0 and rename the directory, you would have to change the mapping in every login script where that search mapping appears.
By using a Directory Map object, you could avoid having to make changes to the login scripts.
First, you could create a Directory Map object called CURRENT_DOS that points to the DOS directory (SYS:PUBLIC\IBM_PC\MSDOS\5.0).
Then, in a MAP command in your login scripts, map a search drive to the Directory Map object, rather than to the specific directory:
MAP INS S2:=.CURRENT_DOS.SALES.NOVELL_US
When users log in, their search drive is mapped to the CURRENT_DOS Directory Map object, which points to the directory containing DOS 5.0.
Later, if you upgrade to DOS 6.0 and change the directory's name to SYS:PUBLIC\IBM_PC\MSDOS\60, you would change only the Directory Map object to indicate the new path.
You would not have to change the MAP command in the login script because the MAP command still indicates the correct Directory Map object.
| For more information about | See |
|---|---|
Creating login scripts |
|
Mapping drives to Directory Map objects in login scripts |
|
Using the MAP utility |
MAP in Utilities Reference |
You can create a Directory Map object using either the NetWare Administrator graphical utility or the NETADMIN text utility. Both procedures are documented in this section.
Choose the NetWare Administrator icon from the MS Windows Program Manager.
From the browser, select the Organization or Organizational Unit object that will contain the Directory Map object.
For information about moving around in the browser and selecting objects, choose Help from the menu bar.
Choose Create from the Object menu.
Choose Directory Map from the New Object dialog box.
Choose OK.
Enter the name for the Directory Map object in the space provided.
In the Volume field, enter the name of the volume this Directory Map object will point to.
You can type in the complete name of the Volume object, or you can choose the browser button to the right of the Volume field to browse for the Volume object.
In the Path field, enter the path of the directory this Directory Map object will point to.
You can type in the path, or you can choose the browser button to the right of the Path field to browse for the directory that the Directory Map object will point to.
If the Directory Map object will point to the root of the specified volume, leave the Path field blank.
(Optional) To define additional properties immediately after creating the Directory Map object, choose Define Additional Properties.
(Optional) To create another Directory Map object immediately after this one, choose Create Another Directory Map.
Choose Create.
The Directory Map object is created
If you chose Create Another Directory Map, the Create dialog appears.
If you chose Define Additional Properties, the identification screen appears.
| For more information about | See |
|---|---|
Directory Map objects |
Directory Map object in Concepts |
Using the NetWare Administrator utility |
NetWare Administrator in Utilities Reference |
At the DOS prompt, type
NETADMIN <Enter>
Choose Manage Objects from the Netadmin Options menu.
Select the Organization or Organizational Unit object that will contain the Directory Map object.
Browse the Directory tree by selecting objects and pressing <Enter>. When you find the object that you want to contain the Directory Map object, select it and then press <Enter>.
Press <Insert>.
From the Select an Object Class menu, select Directory Map.
Type the name for the Directory Map object and press <Enter>.
In the Volume Object Name field, press <Insert>.
Enter the name of the Volume object this Directory Map object will point to.
You can either type the Volume object's complete name or you can press <Insert> to browse through the Directory tree, select an object, and press <Enter>.
In the Path on Volume field, press <Insert>.
Enter the path of the directory this Directory Map object will point to.
You can either type the full path or you can press <Insert> to browse the file system directory structure in the volume defined in Steps 7 and 8; then press <Enter>.
If the Directory Map object will point to the root of the specified volume, leave the Path field blank and press <Enter>.
From the Name Spaces box, select the type of name space for the volume and press <Enter>.
To save the changes, press <F10>.
| For more information about | See |
|---|---|
Directory Map objects |
Directory Map object in Concepts |
Using the NETADMIN utility |
NETADMIN in Utilities Reference |