<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear Helmut,<br>
<br>
now the script works thank you for your help!!<br>
<br>
at the first try it didn't work because i added the .bat line with
"braces {}"<br>
<div id="gt-src-tools">
<div id="gt-src-tools-l">
<div style="display: inline-block;" id="gt-input-tool">
<div style="" id="itamenu"><span class="ita-kd-inputtools-div"></span></div>
</div>
</div>
</div>
<div class="gt-related-suggest-message" id="spelling-correction"
style="">misunderstanding your previous advice.<br>
<br>
Thanks again, Roy.<br>
</div>
<br>
<div class="moz-cite-prefix">Il 02/11/2014 11:59, Helmut Kudrnovsky
ha scritto:<br>
</div>
<blockquote cite="mid:1414925962799-5170806.post@n6.nabble.com"
type="cite">
<blockquote type="cite">
<pre wrap="">I tried your advice, copied the script in
C:\OSGeo4W\apps\grass\grass-6.4.4\scripts
and made the bat file in
C:\OSGeo4W\apps\grass\grass-6.4.x\bin
but tring tu run it i get this error:
</pre>
</blockquote>
<pre wrap="">
tested here on my side:
(1) copied the content of e.g.
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/grass/browser/grass-addons/grass6/raster/r.basin/r.basin.py">http://trac.osgeo.org/grass/browser/grass-addons/grass6/raster/r.basin/r.basin.py</a>
in r.my.testscript.py and saved the python script in
C:\OSGeo4W\apps\grass\grass-6.4.x\scripts
(2) in C:\OSGeo4W\apps\grass\grass-6.4.x\bin I've added r.my.testscript.bat
with following content
@"%GRASS_PYTHON%" "%GISBASE%/scripts/r.my.testscript.py" %*
=> it works without any problem
</pre>
<br>
</blockquote>
<br>
</body>
</html>