cancel
Showing results for 
Search instead for 
Did you mean: 

Map Network Drive

jabb0
Grafter
Posts: 716
Registered: ‎18-09-2007

Map Network Drive

Hi,
Anyone how I could get a mapped network drive to automatically log me in?
Would a batch script work?
thanks
6 REPLIES 6
VileReynard
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
Registered: ‎01-09-2007

Re: Map Network Drive

Wouldn't you have to login first to get access to network drives?

"In The Beginning Was The Word, And The Word Was Aardvark."

jabb0
Grafter
Posts: 716
Registered: ‎18-09-2007

Re: Map Network Drive

WinXp Pro
Thanks for the help Smiley
samuria
Grafter
Posts: 1,581
Thanks: 3
Registered: ‎13-04-2007

Re: Map Network Drive

a batch file would do it use
net use P: \\pcname or ip\c$ password /user:admin
All the passwords/username are for the pc you are mapping to.
C$ gives you all drive c or use the share name instead of c$
save as map.cmd and run from desktop or put into startup
So it will end up like this

net use P: \\81.149.162.144\sage mypass /user:fred
jabb0
Grafter
Posts: 716
Registered: ‎18-09-2007

Re: Map Network Drive

Ok works a charm cheers.
Now, is there a way i can tell it to wipe all these network drives before it tries to connect?
You see when i start up, they appear in Explorer, but they appear as "Disconnected Network Drive".  And when I run my nifty lil batch script to reconnect i am being told that the resource already exists.
Reconnecting at logon simply doesnt work for at least one of the said network drives.  This way i can be sure wot is going on without havin to second guess what windows is trying to do.
thanks again.
PS Networks are my Nemisis  Roll_eyes
jabb0
Grafter
Posts: 716
Registered: ‎18-09-2007

Re: Map Network Drive

Google'd it.
I thought this would be more complicated than that Cheesy
Simply use:
net use B: /delete

Where B us the drive u wish to unmap!
Thanks again for your help,
You have no idea how much typing in my password every day for drive really annoyed me.
Strat
Community Veteran
Posts: 31,320
Thanks: 1,609
Fixes: 565
Registered: ‎14-04-2007

Re: Map Network Drive

Be aware that you can open a cmd screen and type in
'net help use' to see all available command options.
Windows 10 Firefox 109.0 (64-bit)
To argue with someone who has renounced the use of reason is like administering medicine to the dead - Thomas Paine