MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: LinkOpen problem

  • To: mathgroup at
  • Subject: [mg125193] Re: LinkOpen problem
  • From: Bill Rowe <readnews at>
  • Date: Mon, 27 Feb 2012 06:42:39 -0500 (EST)
  • Delivered-to:

On 2/25/12 at 1:57 AM, christoph.lhotka at (Christoph
Lhotka) wrote:

>first try NotebookDirectory[] to see the path where Mathematica
>looks for the executable.

NotebookDirectory[] returns the directory the current notebook
resides if it has been saved. If you execute this command in a
fresh session in a notebook that has not been saved it will
return $Failed with an error message stating the notebook has
not been saved.

>Use SetDirectory[] to change to the directory where the .exe file is or
>copy the .exe file to the path given by NotebookDirectory[].

Assuming Mathlink uses the same search order as for loading
packages with Get or Needs, then the directories looked at will
be the current working directory which is what is returned by
Directory[] or the directories returned by $Path

  • Prev by Date: Re: Error in solving inequalities
  • Next by Date: Re: Multiple Notebook Execution
  • Previous by thread: Re: LinkOpen problem
  • Next by thread: Retrieving numerical value for ImagePadding