2014-04-02 35 views

回答

0

的.cs文件只是純文本,所以只用一個For循環與Set字符串替換。

@echo off 
setlocal enabledelayedexpansion 
(for /f "tokens=*" %%f in (input.cs) do (
     set "line=%%f" 
     set "line=!line:Find=Replace!" 
     echo(!line! 
)) > tmp.txt 
Move /y tmp.txt input.cs 
相關問題