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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I write a script mapped drive when logging on? 1

Status
Not open for further replies.

trimelater

Technical User
Jul 15, 2002
211
US
I have been trying and searching on google how to write a mapped script and applying it on Windows 2000 Server.

This is what I have come up with

NET USE W:\\servername\sharefile

When I go to the command prompt to type that in, I get "System error 67 has occurred."
"The Network name cannot be found"

I search the web and cannot figure what I am doing wrong.

Trimelater
 
If your using 'exactly' NET USE W:\\servername\sharefile
The problem is you need a space between the W: and the UNC path.

so 'net use w: \\servername\share'

On a side note.. most people now prefer to use vbscript for their login scirpts. It's just allows you alot more power and flexability.

 
Thanks Saugilsr,

I spent hours because I did not seperate the the W: and the UNC path.

Trimelater
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top