Re: Export: Where is exported file?
- To: mathgroup at smc.vnet.net
- Subject: [mg37798] Re: [mg37778] Export: Where is exported file?
- From: "P.J. Hinton" <paulh at wolfram.com>
- Date: Wed, 13 Nov 2002 01:11:26 -0500 (EST)
- Organization: "Wolfram Research, Inc."
- Sender: owner-wri-mathgroup at wolfram.com
On Tue, 12 Nov 2002, DGolber wrote: > When I do > > Export["picture.pdf", pict] > > the file picture.pdf ends up in the directory > > C:\Program Files\Wolfram Research\Mathematica\4.0 > > I can see how to alter this by putting the full name of the file in the > notebook, The "Get File Path" even makes this somewhat easy. > > But is there a settable Option or Preference governing the interpretation of > "filename" in Export[filename,data]? > > In particular, I would like to be able to tell it to put the file in the > Directory that the notebook came from. > > Doe Microsoft Windows have a notion of current directory? If the path supplied to Export[] is not an absolute path, then the path to the created file will be relative to the Mathematica kernel's working directory, which can be queried with the Directory[] function and changed with the SetDirectory[] function. This is true not only of Export[], but also of other kernel file I/O functions. -- P.J. Hinton User Interface Programmer paulh at wolfram.com Wolfram Research, Inc.