Files
survey-manager/survey-nginx/htdocs/vtiger_crm/bin/find_replace.bat
2024-07-19 10:05:36 +00:00

17 lines
265 B
Batchfile

echo off
for /F "tokens=1,* delims==" %%a in (%1) do (
if "%%b"=="%2;" (
echo inside if
echo %%a=%3;>> %1.tmp
) else (
echo inside else
if "%%b"=="" (
echo inside else if
echo %%a>> %1.tmp
) else (
echo inside last else
echo %%a=%%b>> %1.tmp
))
)
move /Y %1.tmp %1