MathGroup Archive 1999

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

Search the Archive

Re: SetDirectory Problems

  • To: mathgroup at
  • Subject: [mg16986] Re: [mg16943] SetDirectory Problems
  • From: Jason Gill <jgill at>
  • Date: Sat, 10 Apr 1999 02:13:27 -0400
  • Organization: IBM Microelectronics
  • References: <>
  • Sender: owner-wri-mathgroup at

    I have had similiar problems, specifically when a sub directory starts
with an n, t, or a numeric, but I am sure there are other cases.  As you may
know Mathematica has special symbols which it recognizes in a String.  For
example, \n represents a new line, or carriage return. As a result if you
have a sub directory \n* Mathematica interprets this as a newline, and as
such SetDirectory will not work.  The solution is to use a double backslash,
in front of these triggers, for example \n if replaced by \\n will work
fine.  I have typically learned (the hardway) which characters cause an
unexpected response, but with the use of double backslashes, have been able
to access all of my directories.
Hope that helps.

Jan Engmann wrote:

> When I'm using the SetDirectory command, typing a directory name
> sometimes results in unexpected response, e.g. backspacing several
> characters. This does not only happen when trying to type an invalid
> directory name, so I had to use quite silly methods, for instance move
> the files to "acceptable" directories. It seems to occur especially when
> using directories which include "0" (zero) characters.
> Has anyone had similar trouble and knows how to solve this?
> Jan

  • Prev by Date: Re: Eigenvalue Problem
  • Next by Date: Re: Permutations & Computer capacity
  • Previous by thread: SetDirectory Problems
  • Next by thread: RE: SetDirectory Problems