Hi :)
Take a look at Ashley's posting from about a year ago (I keep all good
postings in 'Gold' on my private drive :) 
Usefull for relative paths:
Quote:
(...)
if you need to go up ONE directory

        "..\A.TAB"

for each subsequent directory just add "..\", like this

        "..\..\A.TAB"

and you can even psuedo-navigate

        "..\..\path1\A.TAB"
        (up 2 directorys, then "path1", then the file)
(...)


Remember to check  the box ' Relative path' (something like that) when
referencing hotlink paths in the layer control. Then it always works :)
I use hotlink a lot but mostly with absolute paths to the internet. Then my
own users and also the citizens of the municipality are using the same data.
(This is good for error control...)

Take a look at http://mb.breddam.dk/Programmer/WorTjek/WORtjek.zip
In that app, you'll have the opportunity to open a worspace and save all the
files in a separate folder including raster files. (Beware of large raster
files :)
This module is e.g. usefull for creating cd's and for zipping and mailing.
Maybe you can use some of that code? (from WORwrite.mb as far as I remember)
All the other features are more or less specific for my own personal
needs... Well, it isn't compiled so please help yourself.
If the path doesn't work then try http://mb.breddam.dk and click on WORtjek
and use the code from WORwrite.mb. Everything is unfortunately in danish but
be free to mail me directly if you run into problems with the code :)

HTH
S�ren Breddam



-----Oprindelig meddelelse-----
Fra: su chen [mailto:[EMAIL PROTECTED]
Sendt: 5. april 2004 17:33
Til: MAPINFO-L
Emne: MI-L Problems on Creating a CD for Mapinfo projects


hello, all:

First I would like to thank for Lawley, Russell S and
christian.cattaneo for their useful answers to my
previous questions on creatin a CD. However, "File ca
not found" problems still exists for the hotlinked
files.

what I did is put workspace file the top most folder
"MapData", and put all related files in its subfolder,
and then change the absolute path to relate path use
notepad for workspace file, i.e. ".\TAB\*.Tab". For
TAB files, it seems relative path works pretty well.
However, for those hotlinked files, Mapinfo can not
recognized the relative path at all, the way I did
create a column wich contains the relative path to
those hotlink files, for examples
".\Hotlinks\PDFs\filename.pdf", it can not work at
all. The only way I can make it work is give the full
path, like "C:\Mapdata\Hotlinks\PDFs\filename.pdf",
however, this will require user to extract or copy all
 the files in CD into his C drive which is not
preferred. 
I also tried other ways to make it possible to read
all the files on a CD, since it's impossible to
predict the label No, so I have to create lots of CDs
with different Drive No. for those hotlinked files,
like:

D:\Mapdata\Hotlinks\PDFs\filename.pdf
E:\Mapdata\Hotlinks\PDFs\filename.pdf
F:\Mapdata\Hotlinks\PDFs\filename.pdf

It works but make me feel stupid.

Anybody else have gone through the same problem and
would like to suggest me the right way to make it
happen by using relative path for those hotlinked
files?

many Thanks

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11273

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11281

Reply via email to