I also don't like the way MS's programs are searching the
system each time an office program tries to open a file but
they aren't going to fix the delay so the method of mapping
and unmapping drives is the only work-around.
I have created two batch files for home network connection
and two batch files for office network connection Here they
are with slight modification to protect the company's and my
names.
My home network connection (to router assigned IP addresses)
batch file contains the following lines: (The first two and
last lines connect to network attached storage drives and O,
P, & Q attach to my primary desktop's three drives.)
Persistent:no keeps the attachment temporary so that when I
shut down it doesn't automatically come back the next time I
boot the computer.
NET USE W: \\BACKUP-250\BACKUP /persistent:no
NET USE S: \\Documents\Document /persistent:no
NET USE O: "\\SONY\SONY C" /persistent:no
NET USE P: "\\SONY\SONY D" /persistent:no
NET USE Q: "\\SONY\SONY E" /persistent:no
NET USE T: \\MOVIESTORE\MS /persistent:no
If I decide to get off the network at home, I run this batch
file which deletes the mappings which keeps me from having
to reboot the machine between work and home, simply put into
hibernation. IP is reassigned when I get to either the
office or home to the new network.
NET USE W: /delete
NET USE T: /DELETE
NET USE S: /delete
NET USE O: /delete
NET USE P: /delete
NET USE Q: /delete
The mappings for Domain network at work are: (The N:, R:,
P: & Z: mappings are required by the company for policies,
access to their programs and data. The remaining are mapped
to allow me to connect to my work computer and the CD/DVD
copier they have that I transfer information to frequently
for burning new DVDs for the school.)
cd \windows\system32
NET USE R: \\co-server-02\RECORDS /persistent:no
NET USE Z: \\co-server-02\responsiblecourses /persistent:no
NET USE P: \\co-server-02\mtpersonal /persistent:no
NET USE N: \\co-server-01\PROGRAMS /persistent:no
NET USE V: \\CDCOPIER\CD\mypersonal /persistent:no
NET USE X: \\FACULTY9\C$ /persistent:no
NET USE Y: \\FACULTY9\D$ /persistent:no
To remove the mappings:
NET USE R: /delete
NET USE Z: /delete
NET USE P: /delete
NET USE N: /delete
NET USE V: /delete
NET USE X: /delete
NET USE Y: /delete
If you notice, I have the drive mappings for my home network
different than the drive mappings for my work network.
Makes it easier to remember what the drives are when I am at
work or home. Also note that all of the mappings are near
the end of the drive availability. My CD/DVD drive is set as
drive U: to allow any attached USB drives or thumb drives to
attach in the upper (D: - M

without interference from the
OS's assignment of network drives.
message