
CODE: [Copy to clipboard][ Last edited by 26933062 on 2007-9-29 at 06:15 PM ]@echo off
set /p rep=请输入替换的字符:
setlocal EnableDelayedExpansion
for /f "delims=" %%a in (c:\2005\ab.txt) do (
set var=%%a
set num=!var:*source=!
call set str=%%var:!num:~1!=%%
echo !str!!rep!"
)
pause
| Quote: | |
|

| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |