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

Posted on 2006-11-28
Medium Priority
Last Modified: 2008-01-09
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

Question by:Oscar9er
1 Comment

Accepted Solution

elvistheprince earned 2000 total points
ID: 18123372
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.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I feel like more and more people want to know how to programmatically convert addresses into geospatial locations. So in this article, I will show you how you can do it with Bing Maps. I'm going to use PowerShell, which is a nice scripting language,…
Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question