>You talk about a "Project's Home Path". Not sure what that is or how to read/write it.
>
>Do you know how to inspect the path associated with a file that's in the PM? That would be really useful.
I thought this was answered already. It's written in a separate field in the first record of the .pjx file. All the paths to other files are relative to this path, i.e. the files are stored with full paths ony of they're not on the same subdirectory (off the root) or not the same disk as this project's home dir. There's a function (one of the sys(20xx), I think, probably 2014) which returns the relative path to a file off a given starting directory, and this is what I think VFP uses when it writes the filenames of components to the Name field of a .pjx file. So, if you change the home directory of a project, you better don't do that manually, unless you've backuped first (second, and third, just in case), because if some of the files can't be found once the project is moved, it will complain all day long until you locate them. Just copying or moving a project along with the components, and then opening the project, will have VFP prompt you (as others have stated here) to make the new dir the homedir of the project, and VFP will recalculate the relative paths much better than a handmade routine would do.