>If you want the .MPR file to include the right paths, then you should change the default directory to the folder where the .MNX file is before modifying it.
>What I did was to include some lines of code in the queryModifyFile() event of the project hook class of my projects:
>
>
>LPARAMETERS oFile, cClassName
>*-- If I modify the menu file (located in code\prgs) then modify the default
>*-- directory so that icons in the menu are included with the appropiate path.
>do case
>case lower(right(oFile.name, 8)) == 'main.mnx'
> set Default To d:\projectFolder\code\prgs
>.................
>endcase
>
>
>I found it to be the less annoying solution at least for me.
>Hope it works for you.
Thanks for that but I will keep the external approach as suggested in the other message.