[Osgeo4w-trac] Re: [osgeo4w] #36: change app launch bat files to call o4w_env.bat

OSGeo4W trac_osgeo4w at osgeo.org
Fri Jan 23 20:02:32 EST 2009


#36: change app launch bat files to call o4w_env.bat
----------------------+-----------------------------------------------------
  Reporter:  maphew   |       Owner:  maphew  
      Type:  defect   |      Status:  assigned
  Priority:  major    |   Milestone:          
 Component:  Package  |     Version:          
Resolution:           |    Keywords:          
----------------------+-----------------------------------------------------
Comment (by jef):

 {{{start /b "%OSGEO4W_ROOT%\bin\foo.exe"}}} didn't work for me.

 Looks like cmd misinterprets the quoted argument as window title. In the
 QGIS package I therefore use:

 {{{
 @echo off

 SET OSGEO4W_ROOT=@osgeo4w@
 call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
 @echo off
 call "%OSGEO4W_ROOT%"\bin\gdal16.bat

 start "Quantum GIS" /B "%OSGEO4W_ROOT%"\bin\qgis.exe %*
 }}}

 The GRASS package now also uses {{{o4w_env.bat}}}

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/36#comment:2>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer for the OSGeo stack.


More information about the Osgeo4w-trac mailing list