Batch change the drive letter referenced in a ArcMap 9.1 Document (mxd)

Hello, thanks in advance for your help

I want to copy over all the files we use at the firm I work from the server onto my local drive on my laptop so I can carry them with me and work at home.

The maps and shapefiles are stored in a windows file system (as opposed to a GDB). My plan just to copy the entire top level directory onto my  C drive. Except for the rasters which I plan to burn to a DVD with the same file path that they are in on the server.

My question: Is there a way to batch change the drive reference used in the maps. Meaning if there is a map using a shape file stored in P:\GIS\Shapefiles\shapefile_x.shp is there a way to change the drive letter to C: w/o opening the map and doing it manually (there are hundreds of preexisting maps)..

thanks Allot

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm guessing from the context you are talking about ArcGIS .mxd files, I think if you open the mxd in ArcMap on the new PC then when all the layers show up with red exclamation marks you can then right click on them in the legend then goto data -> Set Datasource  and select the new location all of the other datasources in the same directory should be updated at the same time (of course this assumes that all of the shape files are stored in the same directory) this doesn't always work but it's a start.

Alternatively (sorry only just though of this) right click on the "top level directory" that you have copied the data to on you hard drive like c:\GIS Data for instance, select share and share it as say erm GIS_Data. Then (here comes the science) goto \\you_computer_name in explorer and you should see a folder called GIS_Data, right click and select "Map Network Drive..." and map it to drive P:, you should now have a new drive that mirrors the P: when connected to the network, of course this will get reset when you log back onto the network but you could always write a batch file that you could run when you wanted to do/undo it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
GIS/GPS Programming

From novice to tech pro — start learning today.