Here is a Windows batch file I've made that does the same as the CSH script in the Radiance40 example.
It's very much work in progress. The main differences are:
- No check using gensky (awk doesn't work on windows)
- No gendaylit (not in standard Desktop Radiance distribuiton)
For more advanced windows .bat files for Radiance and DaySim you could look at those included with Diva for Rhino.
In system.xml, change the SystemCommand programName to radiance.bat
Save the following to radiance.bat in \radiance40\
@echo off
set month=%~1
set day=%~2
set hour=%~3
set dirnorm=%~4
set difhoriz=%~5
set lat=%~6
set long=%~7
set mer=%~8
gensky %month% %day% %hour% -a %lat% -o %long% -m %mer% > rads/sky.rad
oconv -w rads/sky.rad rads/sky2.rad rads/approx.mat rads/room_basic.rad rads/top_panels.rad rads/desks.rad rads/PC.rad rads/window_pane.rad rads/glass.rad > octs/model_sky.oct
echo 22 60 32 0 0 1 > data/test.pts
rtrace -h -w -I -ab 2 -ad 2000 -as 1000 < data/test.pts octs/model_sky.oct | rcalc -e '$1=179*($1*0.265+$2*0.670+$3*0.065)'
Also, save the sky descriptions below to the file /rads/sky2.rad (since these are static I'm not sure why they were included in the CSH script).
skyfunc glow skyglow
0
0
4 1 1 1 0
skyglow source sky
0
0
4 0 0 1 180
skyglow source ground
0
0
4 0 0 -1 180