On Fri, Feb 8, 2008 at 6:37 AM, Michael J. McCann <address@hidden> wrote:
> Michael,
> Thank you for the quick response. Your reply makes good
> sense, but I can't make 'addpath' or any change directory command do
> anything with paths that contain spaces and that's where all my stuff is:
> C:\Documents and Settings\mjmccann\My
> Documents\ etc. Personally I don't define file names with spaces
> but Windows XP does.
> I see you use ( ) round the path-name, but I thought it was
> a command, not a function call. Is that my mistake?
A command is simply a function that can be called more conveniently
as a command, but it's still a function. So for instance, typing
addpath C:\MyDir
or
addpath('C:\MyDir')
are equivalent. If your path contains spaces, just surround the path
with single quotes (if you use double quote, you have to double the
backslash; see octave documentation about single and double quote
difference):
addpath 'C:\Documents and Settings\mjmccann\My Documents\whatever'
or
addpath('C:\Documents and Settings\mjmccann\My Documents\whatever')
Michael.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________