
[已解決]批處理刪除文本中空行的腳本修改
這段腳本可以,但是稍大一點文件就會產生亂碼,高手請修改一下,不勝感謝!nclick="copycode($('code0'));">復制代碼
- @echo off
- ::By Shilyx mailto [email protected]
- if {%1}=={} goto :EOF
- :begin
- if {%1}=={} goto end
- call elBlank %1
- shift
- goto begin
- elBlank
- if not exist %1 goto :EOF
- echo Deleting Balnk Lines in %1
- echo.
- type %1 | findstr /V ^$ >C:_tmp.Shilyx
- type C:_tmp.Shilyx>%1
- goto :EOF
- :end
- if exist C:_tmp.Shilyx del C:_tmp.Shilyx
- echo Process Succeed, press any key to exit ...
- pause>nul

