I have QGIS 3.10 and I can run GDAL using OSGeo Shell. I want to be able to use GDAL commands from command line. For now, when I run gdalinfo --version I get message 'gdalinfo' is not recognized as an internal or external command, operable program or batch file.

How can I fix this?

  • 2
    OSGeo4W shell is command line. Why don't you just use that? – user30184 Mar 14 at 13:53

You can use the full path

"C:\Program Files\QGIS 3.16\bin\"gdalinfo.exe --version

or just browse to the directory and call the tools

cd "C:\Program Files\QGIS 3.16\bin\"
gdalinfo.exe --version

or put QGIS bin dir in your path.

  • Thanks, I set QGIS bin to path variable. – DrJacoby Mar 14 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.