I'm writing a macro that will generate a new email and create a hyperlink in the email body. The hyperlink will be to a new file located on a network drive.
I've had success creating the hyperlink by constructing the string this way:
"file:M:/Network_Folder/Subfolder/NewFile.pdf"
I prefixed the path string with "file:". Great.
My problem now is with folder names that use a space instead of an underscore. The hyperlink stops short as soon as it reaches the first space.
Besides renaming the folder name (not an option for us), is there any way around this in LISP?
Even better would be to simplifiy the text that is displayed for the hyperlink, i.e. just the file name rather than the full path.
Thanks.
Solved! Go to Solution.
Solved by paullimapa. Go to Solution.
How about sorrounding it with another set of quotes:
\""file:///M:/Network_Folder/Subfolder/NewFile.pdf"\"
Thanks for your reply Paul.
I tried your suggestion out, in a variety of combinations, but still no success. Hyperlink always stops short once it reaches the first space in the path.
Any other ideas?
Thx!
What if instead of a space you use %20 as referenced here: http://www.w3schools.com/tags/ref_urlencode.asp
Perfect, that did it!
Thanks for digging up that link Paul. Much appreciated.
No problem...just glad that worked out for you...