Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mapping network drives after login

0 views
Skip to first unread message

Dave

unread,
Jul 5, 2003, 8:55:26 AM7/5/03
to
Greetings all,

(Windows XP Pro)

Is it possible to put all network drive mappings in a batch file to be
run after login? I'm looking to put the DOS commands (if they exist)
in a little VB script to be run aftere logged onto my employers
network.

The reason for this is when I connect to my office network from home I
have to do the following

Bring up a dialup connection
Make a connection via VPN
Login to the local domain

Obviously restoring network connections at boot is not going to be
any use. I also need to have a connection to about 30 network drives
so re-mapping is a big hassle.

Anyone know if the mappings can be done from a DOS batch file? Or is
there an easier way of acheiving this?

Thanks in advance.

Dave.

John Haithwaite @ Blue Case Solutions

unread,
Jul 5, 2003, 9:21:43 AM7/5/03
to
You won't be able to map the drives to a "drive letter" as there are only 26
letters of the alphabet and (usually) A:\, C:\, and D:\ are taken.

In XP, go to my network places and click "Add Network Place" then browse to
the share you want. This will create a persistant link on your PC. Obviously
you need to do this whilst connected to the VPN

"Dave" <bl...@blah.com> wrote in message
news:cohdgvg9rnhihdla6...@4ax.com...

Dave

unread,
Jul 5, 2003, 9:52:35 AM7/5/03
to

John,

That is the problem... Every time I would need to; boot up, make an
internet connection, connect the VPN and manually create network
drives. Too much hassle!

Browsing the net I have found it's possible to use the MS-DOS command
NET USE in a batch file to connect network drives. (Up to 26 as you
mentioned)


NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Thanks for your input.

Dave.

John Haithwaite @ Blue Case Solutions

unread,
Jul 6, 2003, 6:12:32 PM7/6/03
to
That would do it as well, but I stand by my earlier suggestion of using
WinXP's built in functionallity of mapping UNC shares without Drive letters
from within My Network Places


"Dave" <bl...@blah.com> wrote in message

news:knldgvgj6h9ma5sl1...@4ax.com...

0 new messages