[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: here?
From: |
Vic Norton |
Subject: |
Re: here? |
Date: |
Sun, 18 Feb 2007 10:56:41 -0500 |
On 2/18/07, at 8:57 AM -0500, Vic Norton wrote:
> It would be nice to have a "here" function that would return the path
> of the directory in which a script resides. Then
> thisdir = here();
> cd thisdir;
> would do just what I want.
Thanks everyone. The code
thisdir = fileparts(mfilename("fullpath"));
chdir(thisdir);
is just what I was looking for.
Regards,
Vic
- here?, Vic Norton, 2007/02/18
- Re: here?, David Bateman, 2007/02/18
- Re: here?, Søren Hauberg, 2007/02/18
- Re: here?, Thomas Treichl, 2007/02/18
- Re: here?,
Vic Norton <=