MathGroup Archive 2002

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

Search the Archive

Re: Export Directory

  • To: mathgroup at
  • Subject: [mg33442] Re: [mg33393] Export Directory
  • From: Murray Eisenberg <murraye at>
  • Date: Thu, 21 Mar 2002 09:27:30 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <>
  • Reply-to: murray at
  • Sender: owner-wri-mathgroup at

For a single export, just give the entire path as the filename
argument.   For example:

   g = Plot[x^2, {x, -1, 1}];
   Export["c:\\mydata\\plot.eps", g, "EPS"]

The above path format, with doubled backslashes, works for the Windows
platform.  (Single backslashes in a string may be interpreted as escape

To change the directory for multiple exports at the current sesssion,
you may use SetDirectory.  For example:

  Export["plot.eps", g, "EPS"]

Joel Storch wrote:
> When using the "Export" command to save an eps
> file, it lands up in the "Mathematica 4.0 Files"
> directory (folder). How do I direct the file to
> another destination ?

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.       
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street
Amherst, MA 01375

  • Prev by Date: Adding columns and rows to a table
  • Next by Date: Re: Rolling up some integers
  • Previous by thread: Export Directory
  • Next by thread: Re: Export Directory