octave-maintainers
[Top][All Lists]
Advanced

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

Re: Windows: different behaviour of octave.bat and octave-cli/gui.exe re


From: Tatsuro MATSUOKA
Subject: Re: Windows: different behaviour of octave.bat and octave-cli/gui.exe regarding modifying path
Date: Tue, 9 Aug 2016 16:47:48 +0900 (JST)

----- Original Message -----
>From: Abhinav Tripathi 
>To: Nicholas Jankowski 
>Cc: octave-maintainers ; Mike Miller 
>Date: 2016/8/9, Tue 16:10
>Subject: Re: Windows: different behaviour of octave.bat and octave-cli/gui.exe 
>regarding modifying path
> 
>
>On Aug 9, 2016 1:38 AM, "Nicholas Jankowski" <address@hidden> wrote:
>>
>>
>> you don't want multiple files changing the path when starting octave. the 
>> windows version is designed to use available widows scripting language to 
>> find the local path and set it. this is done with the octave.bat file. after 
>> taking care of startup steps, octave.bat calls the appropriate executable.  
>>
>> Octave.bat runs the following line:
>>
>> set OCT_HOME=%~dp0
>>
>> to find the current location of octave and then that gets added to the path. 
>>  This enables the zip-file "installer" for windows, as well as having 
>> multiple versions of Octave installed at one time.
>
>Hi Nicholas, 
>Thanks for the explanation.
>How about having the path such that it gives higher precedence to octave files 
>over windows?
>I mean currently, if I open octave (by the exe files), the PATH is atleast 
>"<windows-path>;<some-octave-dirs>;" how about swapping the 2 parts such that 
>the octave dirs are prepended and not appended?
>Even that would help resolve issues while installing packages...
>.
>Abhinav
>


If you set some setting outside octave.bat, you can use "call (path to 
octave.bat)\octave.bat (options)"

e.g.

Rem example.bat

@echo off
(some setting you want)

call C:\octave\octave-dev\octave.bat --no-gui.

Rem end if example.bat


HTH

Tatsuro



reply via email to

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