文件内容替换BAT
摘要:
@echo offsetlocal enabledelayedexpansionset file=c:/abc/jdbc.propertiesset "file=%file:"=%"for %%i in ("%file%") do set file=%%~fiecho.set replaced=set /p replaced= 请输入即将被替换的内容:echo.set all=set /p all= 请输入替换的内容:for /f "delims=" %%i in ('type "%file%"& 阅读全文