Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script (error 85 problem)

Status
Not open for further replies.
Feb 2, 2004
36
CA
I am writing a new script in XP. Im trying to map a drive using the 'net use j: \\servername\sharedname' command.
It worked fine the first time but the 2nd time it ran it gave me 'System error 85 has occured. The local device name is already in use.' I know that it is mapping the drive letter each time, but I dont know how to prevent this.
please help!
 
Just ignore it. It's basically telling you it's already mapped!

If it's really bugging you, then you can try removing the drives at logoff or remove it before logging on:

NET USE /d J: /y
...
...
NET USE J: \\SERVER\SHARE

or

don't map them persistantly:

NET USE J: \\SERVER\SHARE /perisistent:no








"In space, nobody can hear you click..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top