<html v="urn:schemas-microsoft-com:vml" o="urn:schemas-microsoft-com:office:office" w="urn:schemas-microsoft-com:office:word" m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
 {font-family:"Cambria Math";
 panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
 {font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
 {margin:0cm;
 font-size:11.0pt;
 font-family:"Aptos",sans-serif;
 mso-fareast-language:EN-US;}
span.EmailStyle17
 {mso-style-type:personal-compose;
 font-family:"Aptos",sans-serif;
 color:windowtext;}
.MsoChpDefault
 {mso-style-type:export-only;
 font-size:11.0pt;
 mso-ligatures:none;
 mso-fareast-language:EN-US;}
@page WordSection1
 {size:612.0pt 792.0pt;
 margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
 {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang="EN-NZ" link="#467886" vlink="#96607D" style="overflow-wrap: break-word; zoom: 0%;"><div dir="auto">If you use Python it should be fairly simple to enumerate all layers, test to see if they're file based and then use pattern matching to alter the file paths<br><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Oisin<!-- tmjah_g_1299e --><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->07570 977449<!-- tmjah_g_1299e --><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Get BlueMail for Android <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On 4 Apr 2024, at 19:28, "Tony Shepherd (FarmMaps NZ) via QGIS-User" <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="WordSection1"><p class="MsoNormal">Hi All</p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal">I am sure I am not the first to ponder how to deal with this.  I have loads, thousands likely, of project files in a series of folders and subfolders.  I need to move those files and folders to a new location to enable other staff to use the project files and their associated shp files, geo packages, rasters etc.</p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal">Essentially, I am shifting my entire collection of GIS work to a shared location for others to start using, so moving from a sole operator to a shared environment.</p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal">In my old MapInfo days, I would simply do a bulk search and replace over the workspace files (text-based so this is easy) and change the paths that need changing and all would be ok.</p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal">As qgz files are not easily modified through a text editor, are there any tools out there to enable bulk changing of file paths in those files? </p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal">Any other approaches?</p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">Cheers</span></p><p></p><p></p><p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">Tony</span></p><p></p><p></p><p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"></span></p><p> </p><p></p><p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">------------------------------------------------------------------------------------------------------------------</span></p><p></p><p></p><p class="MsoNormal"><b><span style="color:#404040;mso-fareast-language:EN-NZ">Tony Shepherd</span></b><span style="color:#595959;mso-fareast-language:EN-NZ"></span></p><p></p><p></p><p class="MsoNormal"><i><span style="color:#595959;mso-fareast-language:EN-NZ">  GeoSpatial Manager @ FarmMaps NZ & Photographer @ Shepherd Photos</span></i></p><p></p><p></p><p class="MsoNormal"><span style="color:#595959;mso-fareast-language:EN-NZ"></span></p><p> </p><p></p><p class="MsoNormal"><b><i><span style="color:#595959;mso-fareast-language:EN-NZ">Phone</span></i></b><span style="color:#595959;mso-fareast-language:EN-NZ"> <b>–</b> 027 435 6193  | <b><i>Website</i> – </b><a href="http://shepherdphotos.co.nz/"><span style="color:#0563C1">shepherdphotos.co.nz</span></a></span></p><p></p><p></p><p class="MsoNormal"><b><i><span style="color:#595959;mso-fareast-language:EN-NZ">Email</span></i></b><b><span style="color:#595959;mso-fareast-language:EN-NZ"> – Maps</span></b><span style="color:#595959;mso-fareast-language:EN-NZ"> <a href="mailto:tony@farmmaps.nz"><span style="color:#0563C1">tony@farmmaps.nz</span></a>  |  <b><i>Email</i> – Photos</b>  <a href="mailto:tony@shepherdphotos.co.nz"><span style="color:#0563C1">tony@shepherdphotos.co.nz</span></a></span></p><p></p><p></p><p class="MsoNormal"><b><i><span style="color:#595959;mso-fareast-language:EN-NZ">Facebook</span></i></b><span style="color:#595959;mso-fareast-language:EN-NZ"> <a href="https://www.facebook.com/TonyShepherdPhotos"><span style="color:#0563C1">TonyShepherdPhotos</span></a></span></p><p></p><p></p><p class="MsoNormal"><span style="color:#595959;mso-fareast-language:EN-NZ"></span></p><p> </p><p></p><p class="MsoNormal"><span style="color:#595959;mso-fareast-language:EN-NZ"></span></p><p> </p><p></p><p class="MsoNormal"><span style="color:#595959;mso-fareast-language:EN-NZ"><img border="0" width="160" height="75" style="width:1.6666in;height:.7812in" id="Picture_x0020_1" src="cid:image001.jpg@01DA872A.E26AD7C0" alt="FM_logo1_small (Custom)"></span></p><p></p><p></p><p class="MsoNormal"></p><p> </p></div><pre class="blue"><hr><br>QGIS-User mailing list<br>QGIS-User@lists.osgeo.org<br>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></pre></blockquote></div></body></html>