The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Default path for opening files
Replies: 14   Last Post: Jul 1, 2012 2:13 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
McHale, Paul

Posts: 60
Registered: 5/29/11
Re: Default path for opening files
Posted: Jun 26, 2012 4:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> Is there any smarter way to do this? Look forward to your helpful
> comments.

I simply use:


This will use existing directory regardless of where notebook is. The only caveat is you must save a new notebook at least once so it has an official
filename. I would like to make this the default activity but am not sure how to do it. I am also not sure what impact it will have when multiple notebooks are open in different directories.

Other people just use:
filename = NotebookDirectory[] <> inputFileName;

This is done anytime a file is accessed.

It is almost becoming faster for me to use FileNames[] than it is to open an Explorer window to look at the current directory. Because I am staying in Mathematica more and more, I prefer to have the directory default to current directory.


Paul McHale | Electrical Engineer, Energetics Systems | Excelitas Technologies Corp.

Phone: +1 937.865.3004 | Fax: +1 937.865.5170 | Mobile: +1 937.371.2828
1100 Vanguard Blvd, Miamisburg, Ohio 45342-0312 USA

Please consider the environment before printing this e-mail.
This email message and any attachments are confidential and proprietary to Excelitas Technologies Corp. If you are not the intended recipient of this message, please inform the sender by replying to this email or sending a message to the sender and destroy the message and any attachments.
Thank you

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.