MathGroup Archive 1998

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

Search the Archive

SetDirectory with mathlink

  • To: mathgroup at
  • Subject: [mg15087] SetDirectory with mathlink
  • From: "wgrebe" <wgrebe at>
  • Date: Thu, 10 Dec 1998 03:13:16 -0500
  • Sender: owner-wri-mathgroup at

I have the following problem:
I write a program in C and use Mathematica via MathLink. I try to send
the command 'SetDirectory["C:\\Programme"]' to Mathematica via an
EnterTextPacket. I think the problem are the quotation marks. Of course
when I type in

MLPutString( link, "SetDirectory["C:\\Programme"]");

the program  cannot be built. So I use the escape sequence ' \ ':

MLPutFunction( link, "EnterTextPacket", 1); MLPutString( link,
"SetDirectory[\"C:\\Programme\"]"); MLEndPacket( link);

Unfortunately this doesn't work either. What is wrong?
Thank you
wgrebe at

  • Prev by Date: Re: TableHeadings
  • Next by Date: Two questions---nonevaluated Integrate; NIntegrate inside NDSolve
  • Previous by thread: help
  • Next by thread: Re: SetDirectory with mathlink