textreplace -sf httpd.d/httpd_mapserver_tutorial.conf -df httpd.d/httpd_mapserver_tutorial.conf -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example06/example.map -df apps/mapserver-tutorial/example06/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example07/example.map -df apps/mapserver-tutorial/example07/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example08/example.map -df apps/mapserver-tutorial/example08/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example09/example.map -df apps/mapserver-tutorial/example09/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example10/example.map -df apps/mapserver-tutorial/example10/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example11/example.map -df apps/mapserver-tutorial/example11/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example12/example.map -df apps/mapserver-tutorial/example12/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example13/example.map -df apps/mapserver-tutorial/example13/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example16/example.map -df apps/mapserver-tutorial/example16/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example17/example.map -df apps/mapserver-tutorial/example17/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example18/example.map -df apps/mapserver-tutorial/example18/example.map -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example06/example_map.html -df apps/mapserver-tutorial/example06/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example07/example_map.html -df apps/mapserver-tutorial/example07/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example08/example_map.html -df apps/mapserver-tutorial/example08/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example09/example_map.html -df apps/mapserver-tutorial/example09/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example10/example_map.html -df apps/mapserver-tutorial/example10/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example11/example_map.html -df apps/mapserver-tutorial/example11/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example12/example_map.html -df apps/mapserver-tutorial/example12/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example13/example_map.html -df apps/mapserver-tutorial/example13/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example16/example_map.html -df apps/mapserver-tutorial/example16/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example17/example_map.html -df apps/mapserver-tutorial/example17/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example18/example_map.html -df apps/mapserver-tutorial/example18/example_map.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example01/index.html -df apps/mapserver-tutorial/example01/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example02/index.html -df apps/mapserver-tutorial/example02/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example03/index.html -df apps/mapserver-tutorial/example03/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example04/index.html -df apps/mapserver-tutorial/example04/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example05/index.html -df apps/mapserver-tutorial/example05/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example06/index.html -df apps/mapserver-tutorial/example06/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example07/index.html -df apps/mapserver-tutorial/example07/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example08/index.html -df apps/mapserver-tutorial/example08/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example09/index.html -df apps/mapserver-tutorial/example09/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example10/index.html -df apps/mapserver-tutorial/example10/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example11/index.html -df apps/mapserver-tutorial/example11/index.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/index.html -df apps/mapserver-tutorial/index.html -map @osgeo4w@ %OSGEO4W_ROOT%

REM reverse brackets
set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=/%

textreplace -sf apps/mapserver-tutorial/example14/openlayers.html -df apps/mapserver-tutorial/example14/openlayers.html -map @osgeo4w@ %OSGEO4W_ROOT%
textreplace -sf apps/mapserver-tutorial/example14/openlayers_source.html -df apps/mapserver-tutorial/example14/openlayers_source.html -map @osgeo4w@ %OSGEO4W_ROOT%

REM reverse brackets
set OSGEO4W_ROOT=%OSGEO4W_ROOT:/=\%

REM restart the apache service
bin/apache-restart.bat