[Radiance-general] set PATH and RAYPATH in the batch file - WINDOWS 8.1

Giuseppe De Michele giudm.87 at gmail.com
Tue May 19 06:31:21 PDT 2015


Dear Axel and Terrance,

thanks for the prompt answer. Now I have all clear. Using the %PATH% after
my path I solved my problem.

Axel, yours solution gave me the same problem, just because the problem
wasn’t the perl interpreter but the request of other “files system”
(probably needed by perl) in the PATH.


Best,

Giuseppe

2015-05-19 12:48 GMT+02:00 Terrance McMinn <t.mcminn at iinet.net.au>:

>  Don't have Window 8.1 but from memory in unix bash environmental
> variables are referred to as $var
> in Windows batch files use %var%
>
> Hope this helps.
>
>
> On 19/05/15 6:25 PM, Giuseppe De Michele wrote:
>
>  Dear experts,
>
>
>
> I have already set in the environment variables of *WINDOW 8.1* the path
> and raypath for Radiance. However, I would like also to set PATH and
> RAYPATH straight in a batch file for a question of Radiance version
> required by our tool.
>
>
>
> Below what I have written in the *.bat file:
>
>
>
> *set RAYPATH=.;C:\Radiance\lib;$RAYPATH*
>
> *set PATH=.;C:\Radiance\bin\;$PATH*
>
> *c:*
>
> *cd /d %~dp0*
>
> *gendaylit 1 3 9 -L 0 2500 -a 44.4167 -o -8.85 -m 15 -i 60 | genskyvec.pl
> <http://genskyvec.pl> -m 4 -c 1 1 1 > temp/skysun.skv*
>
>
>
> and this is the error that I got:
>
>
>
> print() on closed filehandle OCONV at C:\Radiance\bin\genskyvec.pl line
> 114, <>line 18.
>
> print() on closed filehandle OCONV at C:\Radiance\bin\genskyvec.pl line
> 115, <>line 18.
>
> print() on closed filehandle OCONV at C:\Radiance\bin\genskyvec.pl line
> 116, <>line 18.
>
> Use of uninitialized value in split at C:\Radiance\bin\genskyvec.pl line
> 137, <> line 18.
>
> Use of uninitialized value $ang[0] in addition (+) at C:\Radiance\bin\
> genskyvec.pl line 138, <> line 18.
>
> Use of uninitialized value in split at C:\Radiance\bin\genskyvec.pl line
> 137, <> line 18.
>
> Use of uninitialized value $ang[1] in addition (+) at C:\Radiance\bin\
> genskyvec.pl line 138, <> line 18.
>
> Use of uninitialized value in split at C:\Radiance\bin\genskyvec.pl line
> 137, <> line 18.
>
> Use of uninitialized value $ang[2] in addition (+) at C:\Radiance\bin\
> genskyvec.pl line 138, <> line 18.
>
> Use of uninitialized value $ang[0] in addition (+) at C:\Radiance\bin\
> genskyvec.pl line 141, <> line 18.
>
> Use of uninitialized value $dom[0] in division (/) at C:\Radiance\bin\
> genskyvec.pl line 141, <> line 18.
>
> Illegal division by zero at C:\Radiance\bin\genskyvec.pl line 141, <>
> line 18.
>
>
>
> Of course, if I run the batch file only with:
>
>
>
> *cd /d %~dp0*
>
> *gendaylit 1 3 9 -L 0 2500 -a 44.4167 -o -8.85 -m 15 -i 60 | genskyvec.pl
> <http://genskyvec.pl> -m 4 -c 1 1 1 > temp/skysun.skv*
>
>
>  all works fine.
>
>
>  I have also noticed that Radiance's commands that do not require the
> perl intrepreter run without problems with the path and raypath set in the
> batch file.
>
>
>  Any advice?
>
>
>
>
>  Cheers,
>  *Giuseppe De Michele*
>
>
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>


-- 
*Giuseppe De Michele*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150519/e6b24da0/attachment-0001.html>


More information about the Radiance-general mailing list