一 192009
有人可能会觉得这个很无聊,记事本打开删掉不就OK了?的确,如果一个两个甚至四五个你打开删掉就OK,如果你有几百甚至几千个呢?还有就是文本处理不仅限于TXT,也可以是html等,一个扩展名而已。
[code=bat]
rem 假设你要处理的文本都在目录d:\test\下。
@echo off
for /f "delims=" %%i in ('dir/b "d:\test\*.txt"') do call :del_ "%%i"
goto :eof
:del_
echo off >d:\test\%1
goto :eof[/code]
Sorry, the comment form is closed at this time.