help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add to PATH on Windows


From: Andy Buckle
Subject: Re: Add to PATH on Windows
Date: Fri, 9 Dec 2011 08:32:01 +0000

On 9 December 2011 07:44, Fa-Gung Fan <address@hidden> wrote:
> Hi,
>
> On Windows, I would like to add this directory C:\Program
> Files\gs\gs9.02\bin to PATH environmental variable.  I entered
> addpath ("C:\\Program Files\\gs\\gs9.02\\bin")
> After that, I used
> getenv ("PATH")
> to check the new PATH, but I don't see the directory got added to the PATH.
> Any suggestion?  Thanks.
>
>   Fan

getenv("PATH") returns the OS path. The octave function path() will
return Octave's path.

Also note that you could write
addpath ('C:\Program Files\gs\gs9.02\bin')
With the single quotes, the backslash is not interpreted as an escape character.

-- 
/* andy buckle */


reply via email to

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