A Directory Map object represents a particular directory in the file system. 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.x User Guide.
For example, if you have a directory that contains a word processor, you will probably map a network-search drive to that directory in any login scripts you create. If you should later upgrade the word processor and rename the directory, you need to change the mapping in every login script where that search mapping appears.
By using a Directory Map object, you could avoid making 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 NW 6.5 SP8: Utilities Reference.
When users log in, their network-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 change the map command in the login scripts because the map command still indicates the correct Directory Map object.