Batch file runs with "not recognized...command", how to fix this? <p>I have a batch file which when executed sets PATHs, prompts user for input and loads a script via Python. The python script creates a grid with the size of each cell determined by the user input variable (<code>cellsize</code>). The following is from my .bat file:</p> <pre><code>@echo off rem Root OSGEO4W home dir to the following directory call "C:\OSGeo4W64\bin\o4w_env.bat" rem List available o4w programs rem but only if osgeo4w called without parameters @echo on set PYTHONPATH=C:\OSGeo4W64\apps\qgis\python set PATH=C:\OSGeo4W64\apps\qgis\bin;%PATH% @echo off echo. set /p cellsize="Enter cellsize: " cellsize=1 cmd /k python "Script.py" %cellsize% @echo on </code></pre> <p>The .bat works the way it's supposed to, I obtain the correct results, but I receive the following error:</p> <blockquote> <p>'cellsize' is not recognized as an internal or external command, operable program or batch file</p> </blockquote> <p>What simple mistake(s) did I make? I am a beginner but still learning.</p>