help-octave
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]