Skip to main content
Known Participant
September 3, 2010
Question

How do I move a .fm to another folder without breaking the .book cross-references?

  • September 3, 2010
  • 1 reply
  • 1001 views

Simplified situation:

I currently have mybook.book containing:

   chapter1.fm

   chap2.fm

   appendixA.fm

   apdxB.fm

I'd like to reorg the files such that mybook.book contains:

   chapters\chapter1.fm

   chapters\chap2.fm

   appendices\appendixA.fm

   appendices\apdxB.fm

If I move the files into folders with Windows Explorer, it will of course break the cross-references.  I thought I could simply use right-click Rename on the file enteries within the book in FM to move them, but it won't allow the / or | chars.  How can I accomplish this reorg without breaking the cross-references?

Thanks,

Dave

    This topic has been closed for replies.

    1 reply

    Inspiring
    September 3, 2010

    If you have a good size project, use Bruce Foster's Archive utility and specify the new directory as your archive directory.

    But if your book is just the size you describe, create your new directory structure and then, in the book file, right click the file and Rename it into the new directory.

    Art

    Known Participant
    September 3, 2010

    Hi Art,

    No luck.  What am I doing wrong?  I created a "chapters" folder in Windows Explorer.  Then I highlighted the filename in the book, right-clicked Rename, and typed "chapters\chapter1.fm"

    Result:  Error stating "A filename cannot contain any of the characters in /\:*?<>|"

    Thanks,

    Dave

    Arnis Gubins
    Inspiring
    September 3, 2010

    Dave,

    Unfortunately, that route is wishful thinking with FM. If you have to move them, then the the x-refs will break. The fastest and easiest way to fix them is to do this via MIF files. Use a search&replace tool to modify the <XRefSrcFile pathname> statement to point to the correct pathname.