Message Boards Message Boards

1
|
4049 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:
GROUPS:

Hyperlink[] gives "file not found" message

Posted 12 years ago
Can anyone tell me why this Hyperlink command
Hyperlink[{"Distributions.nb",
  "file://d:\\DOCUME~1\\CHARLE~1\\MYDOCU~1\\Statistics\\WalpoleAndMyers\\Ch6\\Distributions.nb"}]
fail with the following message: "The file you tried to open was not found or could not be opened."  It also fails if I use UNC notation to designate the file name.  And it fails if I leave out the protocol descripter "file://."  In the file name the third backslash after "Statistics" is not in the original.  This website put that in.
POSTED BY: Charles Elliott
2 Replies
See: http://reference.wolfram.com/mathematica/ref/Hyperlink.html

Your syntax:
Hyperlink[ { "label", "uri" } ]

is not correct.

In your usage, the function would expect two arguments, like so:
Hyperlink[ label, uri ]

For the URI, I would leave of the "file://" part, and just use the menu item Insert -> File Path... to ensure a correctly formatted filename.
POSTED BY: Arnoud Buzing
In the file name the third backslash after "Statistics" is not in the original. This website put that in.
To avoid any code corruption please use designated code blocks while for code pasting - as I did when re-edited your post. Use this button to make code block, once code-block appears - paste codeinto it.

POSTED BY: Vitaliy Kaurov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract