Home > OS >  How to replace the specified content specified file bat
How to replace the specified content specified file bat

Time:09-27

Description:

Can directly use the sed in Linux, Windows have what good method, and consult the great god,

CodePudding user response:

@ echo off REM string substitution set STR=to replace text information echo of STR "% %" XXX "XXX" for replacement, replace with "YYY" REM to replace XXX to YYY set str2 in STR=% STR: XXX %=YYY echo, echo for the replaced: % % str2 echo - pause

CodePudding user response:

Bosses can post the full version of the code, can understand what you say, write not to come out,,
Ps: to replace multiple file content under different paths,


Thank you bosses,

CodePudding user response:

https://bbs.csdn.net/topics/260009981

CodePudding user response:

Don't have to bat, this line is

https://blog.csdn.net/yh12346789/article/details/79616176
  • Related