<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 5:10 AM, Artur Bercik <span dir="ltr"><<a href="mailto:vbubbly21@gmail.com" target="_blank">vbubbly21@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Pietro<br><br>Thanks for your support with the codes for the bat file. <br>I saved it as .bat file, and double clicked on it.<br>Is  it enough to change the system variables?<br><span class=""><font color="#888888"><br></font></span></div></blockquote><div>Pietro might know better, but you have to set the variables for the process which needs them. You have to invoke the GRASS modules in the BAT script which is setting the variables or in the subprocess called from the BAT script.<br><br>Other possibility is to set the variables in the MS Windows system settings but this limits you to one particular GRASS installation (others might be broken) and it is not as safe (concerning stability of other installed programs) as just setting the variables for a given process.<br><br></div><div>In other words, the variables are inherited by subprocesses, so starting the BAT script just sets the variables for the BAT process but other processes invoked later are independent.<br></div><div><br><a href="https://trac.osgeo.org/grass/ticket/2424">https://trac.osgeo.org/grass/ticket/2424</a> <br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 5:10 AM, Artur Bercik <span dir="ltr"><<a href="mailto:vbubbly21@gmail.com" target="_blank">vbubbly21@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sorry for such a childish question, but being very new I hope you help me.<span class=""><font color="#888888"><br></font></span></div></blockquote></div><br></div><div class="gmail_extra">Running GRASS GIS modules outside of the GRASS session is not trivial, so it is great that you asked for help.<br><br></div><div class="gmail_extra">Just
 try to avoid cross posting next time. Speaking about that, would 
somebody (including Arthur) mind to answer the question on GIS SE?<br><br></div><div class="gmail_extra">Vaclav<br></div><br><a href="http://lists.osgeo.org/pipermail/grass-dev/2014-October/071463.html">http://lists.osgeo.org/pipermail/grass-dev/2014-October/071463.html</a><br><a href="https://gis.stackexchange.com/questions/120433/is-not-it-possible-to-use-grass-gis-through-command-line-access">https://gis.stackexchange.com/questions/120433/is-not-it-possible-to-use-grass-gis-through-command-line-access</a><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class=""><font color="#888888">Artur<br></font></span></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 5:46 PM, Pietro <span dir="ltr"><<a href="mailto:peter.zamb@gmail.com" target="_blank">peter.zamb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Artur<br>
<span><br>
On Thu, Oct 30, 2014 at 10:55 PM, Artur Bercik <<a href="mailto:vbubbly21@gmail.com" target="_blank">vbubbly21@gmail.com</a>> wrote:<br>
> Dear GRASS-GIS users:<br>
><br>
> I wanted to use GRASS-GIS through command line access in my Windows PC.<br>
><br>
> So, I have installed GRASS GIS 7.0.0beta3 in drive C of my PC.<br>
><br>
> But, when I enter the following command in the windows command prompt:<br>
><br>
> "C:\Program Files (x86)\GRASS GIS 7.0.0beta3\bin\i.cluster.exe"<br>
><br>
> the program can't start because libint-8.dll is missing from your computer.<br>
> Try reinstalling the program...<br>
><br>
> Please help me what should I do to have the command line access to<br>
> GRASS-GIS.<br>
<br>
</span>If you want to use GRASS without caling GRASS explicity you have to<br>
set your environment variables correctly.<br>
At work one colleague use this bat files to set the variable and use<br>
another python interpreter than the default one:<br>
<br>
<br>
{{{<br>
rem => grass70b2 using python XY<br>
set GISBASE=C:\GRASS GIS 7.0.0beta2<br>
<br>
rem => add a environmental variable for pythonxy<br>
set PY_XY=C:\Python27<br>
<br>
rem => reading the env file for pxthonxy<br>
call "%GISBASE%\etc\env_xy.bat"<br>
<br>
cd C:\GRASS GIS 7.0.0beta2\etc\gui\scripts<br>
<br>
cd "%USERPROFILE%"<br>
"%GRASS_PYTHON%" "%GISBASE%\etc\grass70.py" %C:\Users\<<your<br>
user>>\Documents\grassdata\<<location>>\<<mapset>><br>
<br>
<br>
if %ERRORLEVEL% GEQ 1 pause<br>
}}}<br>
<br>
and the env_xy.bat file contains<br>
<br>
{{{<br>
set GRASS_SH=%GISBASE%\msys\bin\sh.exe<br>
<br>
set GRASS_HTML_BROWSER=firefox<br>
<br>
rem GRASS_PYTHON=%GISBASE%\extrabin\python.exe<br>
set GRASS_PYTHON=%PY_XY%\python.exe<br>
<br>
rem PYTHONHOME=%GISBASE%\Python27<br>
set PYTHONHOME=%PY_XY%<br>
<br>
set GRASS_PROJSHARE=%GISBASE%\share\proj<br>
<br>
set PROJ_LIB=%GISBASE%\share\proj<br>
set GDAL_DATA=%GISBASE%\share\gdal<br>
set GEOTIFF_CSV=%GISBASE%\share\epsg_csv<br>
<br>
set PATH=%GISBASE%\msys\bin;%PATH%<br>
set PATH=%GISBASE%\extrabin;%PATH%<br>
set PATH=%GISBASE%\bin;%PATH%<br>
}}}<br>
<br>
I hope this could help to solve your problem.<br>
<span><font color="#888888"><br>
Pietro<br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div>