BAT批处理提取文件内容替换指定文件内容

从test.txt里查找CLIENT_HOME 按=分割,获取值  替换1.txt里的所有CKIENT_HOME 

由于修改的文件是xml,所以需要chcp 65001切换编码到utf8,否则会出现中文乱码

 

批处理bat:

adding: 0px; font-family: arial, 'courier new', courier, 宋体, monospace, 'Microsoft YaHei'; white-space: pre-wrap; word-wrap: break-word; word-break: break-all; color: rgb(51, 51, 51); line-height: 20px;">

@echo off
chcp 65001

for /f "tokens=1,2 delims==" %%a in ('Type conf.properties^|Find

你可能感兴趣的:(小代码库)