
CODE: [Copy to clipboard]方法二:findstr /v /c:"想删除的命令" "%~0" > "_temp.bat" & move "_temp.bat" "%~0"
CODE: [Copy to clipboard][ Last edited by 000000000000000 on 2010-3-4 at 10:38 ]; for /f "usebackq delims=" %%a in ("%~0") do (
; if not defined _clear set _clear=.>"%~0"
; if not "%%a"=="想删除的命令" echo;%%a>>"%~0"
; )
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |