MathGroup Archive 1999

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

Search the Archive

RE: use pathname for SetDirectory

  • To: mathgroup at
  • Subject: [mg15624] RE: [mg15586] use pathname for SetDirectory
  • From: "Jean-Marie THOMAS" <jmthomas at>
  • Date: Sat, 30 Jan 1999 04:28:26 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Use Input->Get File Path ... and prepend the result with DirectoryName

Hope this helps,

Jean-Marie THOMAS
mailto:jmthomas at
Conseil et Audit en Ingenierie de Calcul 
Strasbourg, France

-----Original Message-----
From: wgrebe [mailto:wgrebe at] To: mathgroup at
Subject: [mg15624] [mg15586] use pathname for SetDirectory


I have written a program which calls Mathematica via MathLink. However,
the answere of my question needn't has to do with MathLink. In my
program I read out the pathname from a FileDialog, for example
and send it to a package in Mathematica. Here (in the
Mathematica-Package) I want to use it in a SetDirectory-command without
the filename at the end and with double ' \': "C:\\FILES".
Of course for the the conversion " \ -> \\ " I can call StringReplace
but how can I get rid of the filename? Or does somebody have a
different solution for my problem?

Thank you

wgrebe at

  • Prev by Date: Re: How to fix bad EPS output from Display[.., .., "EPS"]
  • Next by Date: Re: use pathname for SetDirectory
  • Previous by thread: use pathname for SetDirectory
  • Next by thread: Re: use pathname for SetDirectory