SAS egp files are actually zips of XML data. Read in the egp using a zip library, replace the instances in the XML of the old path, zip, save back as egp files. Test it on a few programs.
This stuff is best done in another language. I prefer C# but use whatever you want (python, for example). For an experienced developer this is ~1 hour of work.
You could treat the XML as a string and use a regex to do the replace or use an XML engine.
So, in order:
1. Read egp files with a zip library
2. Change XML nodes where path needs replacement. OR, read in whole file as a string and replace the path using regex/string replace function
3. Save file back as an egp using a zip library
HTH,
Alan
... View more