Drive mapping with a space in the directory name

  • 7009861
  • 07-Dec-2011
  • 27-Apr-2012

Environment

All versions

Situation

With a drive mapping such as:

map n:=\\server\sys\abc - xyz

an error will appear, such as:

On OES Linux:
LOGIN-LGNWNT32-430: The following drive mapping operation could not be completed.
    [N:=\\SERVER\SYS\ABC-XYZ]
The error code was c000003a.

On NetWare:

LOGIN-LGNWNT32.DLL-430: The following drive mapping operation could not be completed.
    [N:=\\SERVER\SYS\ABC-XYZ]
The error code was 8804.


The login script parser removes any spaces in the filename. As a result, the drive is mapped successfully if a directory called abc-def (without the spaces before and after the hyphen) exists.

Resolution

Put the entire path specified in the map command statement in quotation marks. For example:

map n:="\\server\sys\abc - xyz"


With the quote marks in place, the command works as expected.