NET USE command....a little help please (easy question)

DaLeroy

Golden Member
Dec 4, 2000
1,406
0
0
Hey guys

I'm trying to map a network drive permamently with a password and username in windows, using a batch file.

So far,

NET USE G: \\networkname\share /User:Username /PERSISTENT:YES

Now, somewhere in here it needs a password, the help for the command reckons that this is the syntax, but it doesn't make much sense to me :)

NET USE [devicename | *] [\\computername\sharename[\volume] [password | *] [/USER:[domainname\]username]

Anyone help?

Thanks
 

d33pt

Diamond Member
Jan 12, 2001
5,654
1
81
just add the password at the end... exactly like how the syntax shows you..

NET USE G: \\networkname\share /User:Username /PERSISTENT:YES password
 

DaLeroy

Golden Member
Dec 4, 2000
1,406
0
0


<< just add the password at the end... exactly like how the syntax shows you..

NET USE G: \\networkname\share /User:Username /PERSISTENT:YES password
>>



Cheers, originally I had the password before the username, as that's what the syntax seems to point at....