Hi:<br>I am using grass6.4 on xp platform.<br>I notice that the grass icon in the desktop is a shortcut of grass64.bat under the grass intall directory. it is &quot;F:\anzhuang\GRASS-6-SVN\grass64.bat -wxpython&quot;<br>Then I open the grass64.bat, it just set some<font size="2"> GRASS variables and environment variables. So I think I can create a bat and do some grass process in the command line manner.<br>
<br>My bat is :<br>--------------<br>set GRASSDIR=F:\anzhuang\GRASS-6-SVN<br><br>set HOME=%USERPROFILE%<br><br>set PATH=%path%;%GRASSDIR%\bin;%GRASSDIR%\lib;%GRASSDIR%\etc;%GRASSDIR%\extralib;%GRASSDIR%\sqlite\lib;%GRASSDIR%\sqlite\bin;%GRASSDIR%\driver\db;%GRASSDIR%\extrabin;<br>
<br>set GISRC=C:\Documents and Settings\Administrator\.grassrc6<br>---------------<br>I save it as grassStart.bat at D driver.<br><br>Then I open a new command, run: D:\grassStart.bat, then I use &quot;set &quot; to see the path variable, the grass variables have been added.<br>
<br>Then I want to run a grass command : <a href="http://r.info">r.info</a> ,however it deosnot work. The error message box can be found here:<a href="http://imagebin.org/82527">http://imagebin.org/82527</a><br><br>I hope some one can check it .<br>
<br>In fact what I want to do is set the grass environment variables once the jvm startup, then I can call grass do some process in java.<br></font>