Using Directory Map Objects

A Directory Map object represents a particular directory in the file system. For more information about Directory Map Objects, see Directory Map Objects.

If you create a Directory Map object to point to an application, users can access the application by mapping a drive to the Directory Map object.

Directory Map objects can be especially useful in login scripts by indicating directories that contain applications or other frequently used files. For instructions on creating Directory Map Objects, see Creating a Directory Map Object in the ConsoleOne 1.3 User Guide.

If you have a directory that contains a word processor, you will probably map a search drive to that directory in any login scripts you create. If you should later upgrade to the word processor 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, using ConsoleOne, you could create a Directory Map object called CURRENT_WPR that points to the word processor directory (SYS:PUBLIC\WPR\80).

Then, with 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_WPR.SALES.NOVELL_US

For a general description of the MAP command, see MAP in the Utilities Reference.

When users log in, their search drive is mapped to the CURRENT_WPR Directory Map object, which points to the directory containing WPR8.0.

Later, if you upgrade to WPR9.0 and change the directory's name to SYS:PUBLIC\WPR\90, 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.



Previous | Next