File:\\ hyperlink failing due to space in path name

K

kippers

Hi,

Does anyone know how I can hyperlink direct to a word document using the
file:// command- I have managed to get the link working but when I paste it
into an instant messaging programme the hyperlink fails (hyperlink works up
to the first space in the path name only).
e.g. the path name is file://L:\My Documents\Misc Work\Document1.doc
...and the hyperklink doesn't like the space between the words 'Misc' and
'Work'- this is a shared location on a network so I'm unable to change the
path name- does anyone know how I can hyperlink to the document using the
file:// command??

Any help gratefully appreciated!

cheers,
 
M

Michael Bednarek

Hi,

Does anyone know how I can hyperlink direct to a word document using the
file:// command- I have managed to get the link working but when I paste it
into an instant messaging programme the hyperlink fails (hyperlink works up
to the first space in the path name only).
e.g. the path name is file://L:\My Documents\Misc Work\Document1.doc
...and the hyperklink doesn't like the space between the words 'Misc' and
'Work'- this is a shared location on a network so I'm unable to change the
path name- does anyone know how I can hyperlink to the document using the
file:// command??

That would depend to a large extend of the conventions used in the IM
program you use. A common convention is to place angle brackets around
the link: <file://L:\My Documents\Misc Work\Document1.doc>. The correct
method is to replace characters which are disallowed in a URL by their
hexadecimal character number, e.g. %20 for space:
file://L:\My%20Documents\Misc%20Work\Document1.doc

YMMV.
 
K

kippers

%20 works for me!

Thanks very much Michael.

Michael Bednarek said:
That would depend to a large extend of the conventions used in the IM
program you use. A common convention is to place angle brackets around
the link: <file://L:\My Documents\Misc Work\Document1.doc>. The correct
method is to replace characters which are disallowed in a URL by their
hexadecimal character number, e.g. %20 for space:
file://L:\My%20Documents\Misc%20Work\Document1.doc

YMMV.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top