in reply to path changing problem

Do you mean you wish to move all files from directory /171 to directory /mmt/171 ?

Or do you mean you wish each program to be modified so that references to directory /171 are changed to directory /mmt/171?

These are two very different questions. Or do you mean something else entirely?