- @echo off
-
- set/p "LocalStoreCode=LocalStoreCode=HT"
- set/p "terminalid=terminalid="
-
- for /f "delims=" %%a in ('findstr /n .* "d:\测试\123.ini"') do (
- set "str=%%a"
- setlocal enabledelayedexpansion
- if "!str:LocalStoreCode=!" neq "!str!" (echo;LocalStoreCode=HT!LocalStoreCode!
- ) else if "!str:terminalid=!" neq "!str!" (echo;terminalid=!terminalid!
- ) else (echo;!str:*:=!)
- endlocal
- )
- pause
复制代码
|