Computing.Net > Forums > Programming > Map Network Drive Back to Original

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Map Network Drive Back to Original

Reply to Message Icon

Name: langba
Date: April 13, 2009 at 09:28:15 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

I can map/unmap a network drive easily enough...
net use letter: \\
net use letter: /d

But, what if I need to temporarily remap a drive because corp is pushing an update requiring I use a mapped drive already taken? There are over 150 users with this issue. Each Z: drive is mapped to a personal back up folder, and therefore every mapped drive is different...one to each user.

I asked for the batch to be rewritten to a letter not already assigned, but they said I'd have to do it for them???!!!???

I don't know how! Guessing they don't either!

I need a batch file that remembers the current Z: drive, remaps to a different network location for the update, then maps back to the original network location.

Any ideas?

TIA



Sponsored Link
Ads by Google

Response Number 1
Name: reno
Date: April 16, 2009 at 01:27:08 Pacific
Reply:

pushd \\computer\sharefolder
echo Mapped Drive: %cd%
popd


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Map Network Drive Back to Original

Map network Drive& logon credential www.computing.net/answers/programming/map-network-drive-logon-credential/17232.html

Map Network Drive using C++ www.computing.net/answers/programming/map-network-drive-using-c/6144.html

back-up batch for network drive www.computing.net/answers/programming/backup-batch-for-network-drive-/6442.html