Network Drive Mappings with Access Connection

T4x series specific matters only
Post Reply
Message
Author
mandrak3
Posts: 7
Joined: Fri Aug 27, 2004 7:47 am

Network Drive Mappings with Access Connection

#1 Post by mandrak3 » Tue Sep 28, 2004 11:14 pm

Hi All,

Just wondering if anyone using AC manage to figure out how to automatically disconnect from Network Drive Mappings when switching profiles? E.G. Real annoying when switching from office and home profiles, and finding that Explorer works really slow as it is still trying to find Network Drives that no longer exist. Using AC 3.10 at the moment, am aware that 3.30, but unless this is fixed in the later release, there won't be any compelling reason to move to it (since everything else works fine at the moment otherwise)?

Any thoughts?

jdhurst
Admin
Admin
Posts: 5831
Joined: Thu Apr 29, 2004 6:49 am
Location: Toronto, Canada

#2 Post by jdhurst » Wed Sep 29, 2004 9:19 am

I don't see a method in Access Connections that will release the network drives, but you can create a batch file that will disconnect network drives and then run that batch file as part of the logoff or shutdown process. Use the Group Policy editor to do this. Works pretty well. ... JDHurst

mattfromomaha
Moderator1
Moderator1
Posts: 412
Joined: Fri Jun 11, 2004 4:09 pm
Location: Omaha, NE

#3 Post by mattfromomaha » Wed Sep 29, 2004 11:54 am

You can make batch files that both connect and release the drives.

I think there's a way in Access Connections to "run a certain program" when swtiching to a profile, so you can have the batch file be that program - the "connect to network drives" batch file when you load the Office Profile, and the "release network drives" batch file when you load the Home Profile...I think!

gosha16
Freshman Member
Posts: 84
Joined: Wed Jun 23, 2004 2:25 pm

#4 Post by gosha16 » Wed Sep 29, 2004 1:32 pm

yup, this is really easy. first you need to create a map batch file, to do so first open up notepad.

to map drives type in
net use z: \\computername\resource\resource2
this will map \\computername\resource\resource2 to the Z: drive

finally go to file save but save it as something.bat

now all you have to do in access connections when it asks what programs to launch is direct it to whereever you saved this batch file.

to disconnect, you just have to make another batch file and use this
net use z: /delete
this will delete the z: drive mapping.

here's microsoft's wording in case it makes more sense
Use the Net Use command to map or disconnect a drive
You can use the net use command for batch files and scripts. To use the net use command to map or disconnect a drive:
To map a network drive:
Click Start, and then click Run.
In the Open box, type cmd.
Type net use x: \\computer name\share name, where x: is the drive letter you want to assign to the shared resource.
To disconnect a mapped drive:
Click Start, and then click Run.
In the Open box, type cmd.
Type net use x: /delete, where x: is the drive letter of the shared resource.
this was taken from here

mandrak3
Posts: 7
Joined: Fri Aug 27, 2004 7:47 am

#5 Post by mandrak3 » Wed Sep 29, 2004 10:52 pm

Thanks heaps! Works a treat ... you guys are legends! :D

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad T4x Series”

Who is online

Users browsing this forum: karotlopj and 4 guests