When to Use Backslashes with \\SERVER\VOLUME\ Names
Keywords: backslashes UNC
Question:
When do I use a final backslash after the UNC, and when don't I?Answer:
There are a minimum of four backslashes required with any \\Server\Volume\ UNC name. A UNC that ends with a volume requires a backslash after the volume name.A UNC ending with a directory, however, does not require a backslash after it.
Example:
w95AddDrive(@default,@default,"\\SERVER\PUB\EXCEL","E:",@false)The EXCEL directory does not require a trailing backslash.Whereas in the following example, you do want to use a trailing backslash:
w95AddDrive(@default,@default,"\\SERVER\PUB\","E:",@false)
Article ID: W13473Filename: Backslashes with Servers - Volumes - Directories.txt