
CODE: [Copy to clipboard]用sed更保险...@echo off
for /f "delims= eol=" %%a in (urfile) do (
set str=%%a
setlocal enabledelayedexpansion
set str=!str:^<=!
set str=!str:/=!
set str=!str:^>=!
echo\!str!>>newfile
endlocal
)
pause
CODE: [Copy to clipboard]sed "s,>,,g;s,<,,g;s,/,,g" urfile
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |