[osgeo4w-dev] So does this mean the old non-networked versions will die?

Frank Warmerdam warmerdam at pobox.com
Wed Jun 25 17:02:53 EDT 2008


Matt Wilkie wrote:
>> Do you have a pointer to notes on how you setup Portable GIS?   I've
>> only paid passing attention to your efforts so far, but I'd like to
>> ensure you can provide something similar based on OSGeo4W.
> 
> For gdal utilities I think it's as simple as replacing "set 
> OSGEO4W_ROOT=C:\OSGeo4W" in osgeo4w.bat with:
> 
> -----------------
> rem Root OSGEO4W home dir to the same directory this script exists in
> set OSGEO4W_ROOT=%~dp0
> rem Remove trailing backslash
> set OSGEO4W_ROOT=%OSGEO4W_ROOT:~0,-1%
> echo OSGEO4W home is %OSGEO4W_ROOT% & echo.
> -----------------

Matt,

Wow, how does all this "%~dp0" and related stuff work?  Does this work on
any NT or newer cmd.exe shell?   Is there a web page or help file or something
I could look at?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the osgeo4w-dev mailing list