WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Networks - Servers
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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:   W13473
Filename:   Backslashes with Servers - Volumes - Directories.txt
File Created: 1999:04:15:16:54:16
Last Updated: 1999:04:15:16:54:16