[Qgis-user] qgis,bat starts with 2.18 instead 3.0

Patrick Dunford enzedrailmaps at gmail.com
Fri Apr 6 02:51:45 PDT 2018


If you expect to double click a project file and Qgis opens, then only 
one version of Qgis can be registered for .qgs file extension at a time. 
I am sure this is the same on most OSs.

Other things to look at can be the value of some of the environmental 
variables listed in the batch file and whether they point to the correct 
path. e.g, OSGEO4W_ROOT

On 06/04/18 20:50, Juerg Lindauer wrote:
> Hi
>
> I have two versions of qgis in my system (Win 10) installed. QGIS
> 2.18.15 and 3.0.1.
>
> To open a project file i use right-click and choose the specific batch
> file.
> After installing 3.0.1 the batch file  'C:\Program Files\QGIS
> 3.0\bin\qgis.bat' open the project file with QGIS 2.18.15.
>
> The content of qgis.bat ist:
> @echo off
> call "%~dp0\o4w_env.bat"
> call qt5_env.bat
> call py3_env.bat
>
> path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH%
> set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis
> set GDAL_FILENAME_IS_UTF8=YES
> rem Set VSI cache to be used as buffer, see #6448
> set VSI_CACHE=TRUE
> set VSI_CACHE_SIZE=1000000
> set
> QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis\qtplugins;%OSGEO4W_ROOT%\apps\Qt5\plugins
> start "QGIS" /B "%OSGEO4W_ROOT%"\bin\qgis-bin-g7.4.0.exe %*
>
> How can i open the project file directly with the specific qgis
> Version?
>
> Thanks,
> Juerg Lindauer
>
>   
> Amt für Landwirtschaft
> Abt. Agrarmassnahmen und Bodenrecht
> Hirschistrasse 15
> Postfach 5182
> 6431 Schwyz
> Telefon: 041 819 15 17
> Telefax: 041 819 15 19
> E-Mail: juerg.lindauer at sz.ch
> Internet: www.sz.ch/landwirtschaft
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list