I'm trying to map the users home share on my network (WinNT servers, WinNT and Win2K workstations). Some users have a share drive...some don't. The code I'm using works on the NT workstations, but not the Win2K ones. Here it is:

if exist (@homeshr)
use z: @homeshr
? "Error - [" + @ERROR + "]" + " - " + @SERROR
endif

I get an error code of 0...and it tells me that it completed the command succesfully, but the drive doesn't map.

I tried a different spin on it:

if exist (@homeshr)
z:
cd @homeshr
? "Error - [" + @ERROR + "]" + " - " + @SERROR
endif

This time, I got this message:

"No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept"

I get the same message if I try to map the drive in Windows.

Any ideas?