The drive is mapped at the root of the volume level.
Articles and Tips: qna
01 Aug 1998
Q.
Dear Ab-end: My problem has to do with the Intranet Ware Client for Windows NT v4.3. With this client installed, when I issue a MAP command in a DOS box, the drive is mapped at the root of the volume level, regardless of the directory path I specify. For example, typing
MAP J:=DATA:DEPT\IS\USERS
results in drive J being mapped to
J:=DATA:
Is there a workaround to this problem?
—Mapped Out in Manchester
A.
Dear Mapped Out: Yes, there is a workaround. If you map a drive letter that happens to be your default drive, the DOS MAP command functions normally. For example, if your current drive is J, typing the above MAP command results in a mapping to J:DATA:\DEPT\IS\USERS instead of what you were experiencing, J:\DATA.
To make life a little easier for you, create a MAP.CMD file containing the following lines:
@echo off map.exe %1=%2 %1 map.exe %1=%2
To have this MAP.CMD file be executed instead of MAP.EXE, you need to make a change to the registry. Type the following in a text editor:
REGEDIT4
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\ CurrentVersion\Windows] "Programs"="cmd com exe pif bat"
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\ CurrentVersions\Windows] "Programs"="cmd com exe pif bat"
Save the above as a .REG file. Double-click the .REG file to apply the changes to your registry.
The next time you run the MAP command from a DOS window, it will properly map your drive.
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.