Correcting Broken links

  • 1
  • Question
  • Updated 6 years ago
  • Answered
is there a way to correct broken links faster then one at a time. I had a folder on my C drive where i was doing all my work and file locations. using file explorer all folders and files gave me access to everything. the company that i work for just passed a rule that nothing can be on your harddrive and must be on a server.(back up purposes) is there a way if i move the entire folder containing all folders it will maintain links.
Photo of marvin_carle

marvin_carle

  • 2 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Marvin

If your links are stored as relative links then many of them might be OK if you copy the whole folder somewhere else.

If they are stored as absolute links, then they would all need to be modified. Do you have a few maps that contain a lot of links, or a lot of maps that contain a few links?
Photo of marvin_carle

marvin_carle

  • 2 Posts
  • 0 Reply Likes
a lot of maps with a lot of links what is the meaning of absolute links and relative links.
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
An "absolute" hyperlink specifies the drive letter, e.g. "C:\Program Files\...". A "relative" hyperlink just specifies the path from one file to another by using the minimum number of hops up and down folders, and will work within the same drive without caring which drive it is on. So If you copy a map and files linked with relative hyperlinks to another location, they will still work.

Relative hyperlinks cannot be used across different drive letters. They will automatically become absolute links.

You can tell which type of hyperlink you are using in a map by opening the map, then going to File > Info > Properties. The "Summary" tab shows whether absolute or relative hyperlinks are used by default.

Do the hyperlinks in your maps point to files in fixed locations that are not moving, or are the files that they point to all going to move to the network drive as well?

If they point at files that are staying in fixed locations, then before moving a map to the network drive, do the following:
1. Open the map in MindManager
2. Go to File > Info > Properties > Summary tab
3. Change the Hyperlink setting to Absolute
4. MindManager will ask if you want to change all the links in the map to Absolute links, and answering Yes will change them all.

Now when you move this map to the network drive, the links should still work.

If the hyperlinks in your map point at files that are also moving to the network drive, then you should not need to do anything if they are relative links, You can just copy the folders over. But if you have got Absolute links as the default, then change them to Relative (using the same dialogue as above) before moving the map and its linked files to the network drive.
Photo of Andrew Wilcox

Andrew Wilcox, Champion

  • 1032 Posts
  • 177 Reply Likes
There is an escape route if the links do not work when a map is moved. Use Find and Replace > Options > Look in Hyperlinks to replace for example c: by h: or ../ by c:/mynewdrive/onthispc/ It will act on all topics in the map.

Photo of Luc D.

Luc D.

  • 2 Posts
  • 0 Reply Likes
Is there a way to do this for all your maps in 1 time? Because I have a lot of links that are wrong due an update from XP to W7. The file 'Documents And Settings' doesn't exist anymore in W7. So all these hyperlinks with this file are broken.
If I have to do 1 file at a time it's almost Mission Impossible...
Thanks for your advice.
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
There is no feature built into MindManager, but you might be able to get someone to write a MMScript to scan folders and edit MindManager maps.
Photo of Andrew Wilcox

Andrew Wilcox, Champion

  • 1032 Posts
  • 177 Reply Likes
Useful File Utilities may be able to do this now.

http://www.replsoft.com/

A manual route for one map at time but you can see what needs to be automated is:
Copy your .mmap file or make sure you have a copy in your backup.
Change the file extension of the map file to .zip
Open the archive.
Open the document.xml in a text editor.
Search and replace your folder strings.
Save file
Change .zip back to .mmap

You may be able to do this Useful File Utilities (UFU) by
Making a copy of all .mmap files
Change the .mmap extension to .zip using UFU
Use UFUs Search and Replace
Change .zip back to .mmap

Some corralling of MindManager files into specific folders may be a good idea before letting UFU do global Search and Replaces.

I have attempted this in the past (a few years ago) and at that time UFU was not able to access .zip directly. I suggested it to them and it may be able to now.
Photo of Luc D.

Luc D.

  • 2 Posts
  • 0 Reply Likes
Ok, thanks Andrew and Nick, I'll try. If I understand the situation, there is even in MM 2012 also no tool to correct this automatically or to correct this all together in 1 time.

This conversation is no longer open for comments or replies.