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

Errors

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

Error Connecting to Novell Server from NT4/95

Keywords: wntadddrive error 507: localname is already in the user profile

Question:

	dsel="E:"

	AddExtender("wwwnt34I.dll")
	wntAddDrive(UserID,Pswd,"%server%%MapDrv%",dsel,@false)
In the above code, when appropriate values are passed to the variables, this works just fine to connect to Novell 3.12 servers from my NT3.51 and NT 4.0 workstations which are running the Client Services For Netware requester that comes standard with NT. But on one NT 4.0 workstation I get this error: "Error 507: Localname is already in the user profile", and can not figure out what is wrong. There is a drive letter available, and I can connect it to the server using Explorer, but my Winbatch script simply won't work. Any suggestions what might be wrong? Thanks.

Answer:

This error message means that there is already a persistant drive mapping for the drive letter used.

I suspect your DSEL variable has already somehow been permanently allocated to something and cannot be re-used until DSEL has been detached via wntCancelCon (maybe with the @TRUE persist flag set).

I'm guessing that the drive is already connected on some machines, and must be disconnected before use.

Use wnt[95]GetCon("DRIVE LETTER") to see if it is connected, and wnt[95]CancelCon to disconnect it.


Article ID:   W13535
Filename:   Error Connecting to Novell Server from NT4.txt
File Created: 2001:03:01:14:27:46
Last Updated: 2001:03:01:14:27:46