- @echo off
- set file="D:\Program Files\BAI_PG\BSP\CLIENT\BSP.ini"
- for /f "tokens=1,* delims=:" %%a in ('findstr /n .* %file%') do (
- if not defined clear set clear=.>%file%
- set var=%%b
- setlocal enabledelayedexpansion
- echo;!var:192.168.1.2=192.168.2.222!>>%file%
- endlocal
- )
复制代码
|