
[已解決]批處理如何刪除文本2到5行和倒數1到9謝謝最后由 yyz219 于 -2-9 15:44刪除文本2到5行(第5行為空行)和倒數1到9(第9行為空行),謝謝++++++++++++++++++++++++++++++++++++++問題解決了#&cls&powershell -c type '%~0'|out-string|iex$a=gc a.txt$b=$a[1..4]+$a[-9..-1]compare -ref $a -diff $b|select -expandproperty inputobject >a_new.txt復制代碼

