Skip to content

Instantly share code, notes, and snippets.

@akbargumbira
Created April 7, 2014 13:39
Show Gist options
  • Save akbargumbira/10020474 to your computer and use it in GitHub Desktop.
Save akbargumbira/10020474 to your computer and use it in GitHub Desktop.
win 32 qgis 2.2
@echo off
echo.
REM Make parent of this script location our current directory,
REM converting UNC path to drive letter if needed
pushd %~dp0
cd ..
REM set OSGEO4W_ROOT to short path version
for %%i in ("%CD%") do set OSGEO4W_ROOT=%%~fsi
REM start with clean path
path %OSGEO4W_ROOT%\bin;%WINDIR%\system32;%WINDIR%;%WINDIR%\WBem
for %%f in (%OSGEO4W_ROOT%\etc\ini\*.bat) do echo "%%f"
echo OSGEO4W home is %OSGEO4W_ROOT%
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment