Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am experiencing an error attempting to save a modified Notebook in Mathematica 10 under Windows.

The error I get is:

Could not access the directory X:\Docs\\Mathematica. You should check that directory's permissions.

Note the doubled \\. The correct path is X:\Docs\Mathematica.

NotebookDirectory[] returns the correct (escaped) path:


Correction: This is happening with multiple (all?) Notebooks in this path in the current session.

Has anyone else experienced this error? How can I determine its cause and seek a solution?

share|improve this question

For the aid of anyone else who runs into this issue I seem to have figured out the compounding factors necessary to recreate this problem.

  1. Create a Windows directory C:\foo\bar

  2. Save arbitrary Notebook example.nb to this directory

  3. Using the Option Inspector add to NotebookPath exactly: "C:\\foo\\bar"

  4. Close and restart Mathematica

  5. Create a new Notebook and run NotebookOpen["example.nb"]

  6. Modify the content of example.nb and attempt to save it

The fix for the problem seems to be as simple as changing the NotebookPath entry to:


Why the problem occurs I don't know. Clearly the escaped string \\ form is accepted as the Notebook is found by NotebookGet but apparently it isn't recognized during the save process. The problem also doesn't happen with a single level path such as "C:\\foo".

share|improve this answer
"100k" pop up with me. Thanks for your rare combination of politeness and knowledge :) – eldo Jul 16 '14 at 20:27
@eldo Thank you. – Mr.Wizard Jul 16 '14 at 23:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.