Re: small init.m problem
- To: mathgroup at smc.vnet.net
- Subject: [mg84521] Re: small init.m problem
- From: David Reiss <dbreiss at gmail.com>
- Date: Wed, 2 Jan 2008 01:16:20 -0500 (EST)
- References: <flc83b$81a$1@smc.vnet.net>
One question that I would raise (aside from the correction to the backslash that others have already give to you) is whether SetDirectory is really the command that you want to use. Remember that SetDirectory sets your working directory to be the indicated directory. So, I'd offer that perhaps you are wanting to actually add the directory to $Path: ?$Path $Path gives the default list of directories to search in attempting \ to find an external file. If this is what you want (for example if there is a package in the directory that you'd like to load using Needs) then use the following command in yout init.m file: AppendTo[$Pathe, thedirectory] --David On Dec 31 2007, 9:21=A0pm, Jerry <JLK2... at yahoo.com> wrote: > I'm using V6.01 under XP. > > In order to get Mathematica to find files in by backup directory, I > put the following in an init.m file in Docs and > Settings\MyUserName\Application Data\Mathematica\Kernal : > > SetDirectory["c:\\Backup\Mma"] > > It seems to work nicely (it finds my files and outputs files > into this directory by default) but every time I run a > notebook I get the following in a Messages window: > > Syntax::stresc: Unknown string escape \M. > > It doesn't seem to hurt anything and I've been ignoring it > for months -- but just for info, can someone please tell me > what I'm doing wrong? Thanks.