A question and maybe a suggestion



Vadim V. Zhytnikov a ?crit :

> Etienne Magro writes:
>
>> Hello,
>> I tried to put Maxima on a USB key without modify anything (I help on 
>> the "framakey" project) but for the moment, I have been obliged to 
>> change two lines in the file "maxima.bat" : I changed the line 20 by 
>> "set prefix=%CHDIR%.." and the following by "set 
>> maxima_prefix=%CHDIR%.." and it works. My question is why wasn't it 
>> done before whereas to edit the file every installation ? I think 
>> it's quite easier and now, I can use it on my USB key on every PC 
>> without modifying anything.
>
>
> Hi!
>
> Well, I worry that there is some misunderstanding.
> CHDIR is Windows/MS-DOS command which changes
> working directory or prints current working
> directory (when called without parameters)
> just like UNIX's pwd command.
> But it has nothing to do with %CHDIR% !
> %CHHDIR% is empty environment variable.  So
>
> set maxima_prefix=%CHDIR%..
>
> is equivalent to
>
> set maxima_prefix=..
>
> And maxima.bat with such maxima_prefix works
> but if and only if working directory is
> Maxima's /bin directory.  Original  maxima.bat
> can be called from any directory.
>
> Best wishes,
>
> Vadim
>
Hello !
Ah, ok ! I didn't see it like that, because when I move Maxima.bat, I 
move all the folder maxima, so...
thanks for your aswers.
Etienne Magro