[winGRASS] Starting grass command from cmd.exe
Glynn Clements
glynn at gclements.plus.com
Tue Sep 4 18:36:12 EDT 2007
François-Xavier PRUNAYRE wrote:
> Hi list, Im new to grass on windows and Im wandering if theres any way to
> have grass command running directly from cmd.exe without starting grass.
>
> Ive this up&running on linux setting env variable.
>
> I tried the same on windows but cant get it works. :-(
>
> I added : C:\grass\grass-6.3.cvs\bin and C:\grass\grass-6.3.cvs\lib to PATH
>
> Defined : GISBASE, GRASS_GUI, LOCATION_NAME and MAPSET variables
>
> Any ideas ?
Use the same mechanism as on Linux; just change the syntax for setting
environment variables from bash's "export" to cmd.exe's "set".
Apart from PATH (which needs to contain the bin, scripts and lib
subdirectories), you also need to set GISBASE and GISRC.
Note that GISDBASE, LOCATION_NAME and MAPSET are GRASS variables, set
in the file referenced by %GISRC%, not environment variables.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-windows
mailing list