set "file=%file:"=%"
for %%i in ("%file%") do set "file=%%~fi"
echo.
set replaced=C:/Server
echo.
set all=%cd%
cd.>"%file%_tmp.conf"
setlocal enabledelayedexpansion
for /f "tokens=1* delims=:" %%i in ('findstr /n .* "%file%"') do (
set str=%%j
if not "!str!"=="" (
set "str=!str:%replaced%=%all%!"
Set "str=!str:\=/!"
)
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O"
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t /"%r/" %>s %b /"%{Referer}i/" /"%{User-Agent}i/" %I %O"