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
VileReynard
Seasoned Pro
Posts: 10,651
Thanks: 206
Fixes: 9
Registered: 01-09-2007

Re: Map Network Drive

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

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

Re: Map Network Drive

WinXp Pro
Thanks for the help Smiley
Community Veteran
Posts: 1,571
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.
Moderator
Moderator
Posts: 25,896
Thanks: 1,197
Fixes: 50
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.

Customer and Forum Moderator.