Specifying Windows Network Paths
Microsoft Windows systems use two conventions for specifying the path to a network resource:
- UNC Paths: UNC (Uniform Naming Convention) paths specify the network name of a computer, followed by the name of a directory (and potentially any number of subdirectories) that have been shared on the network. For example, suppose that a directory named
Datathat resides on a computer namedDataServerhas been shared, and that theDatadirectory contains a subdirectory namedmars_orbiter. The UNC path to a JPEG file named01Apr2009.jpgin themars_orbiterdirectory would be: - Mapped Drives: Mapped drives are a convention whereby the path to a network resource is assigned to a drive letter by the system. For example, suppose that the path to the shared
Datadirectory from the above example has been mapped to the Windows drive letter'M'. The path to the same JPEG file using the mapped drive would be:
While IDL can resolve both path formats, it is more efficient to use the UNC path to a network resource when specifying directories to add to the the !PATH system variable. Directories specified using UNC paths will be located and searched for .pro and .sav files much more quickly than paths using mapped drives.