win7 可以直接试 POWERSHELL- Get-Content c:\file.txt | select -skip 11 | out-file -filepath C:\new_file.txt
复制代码 bat + js 混编- @if(0)==(0) echo off & cscript -nologo -e:jscript %0 <file.txt >new_file.txt & pause & exit @end
- var arr = WScript.StdIn.Readall().split("\r\n");
- arr.splice(0, 11);
- WScript.Echo(arr.join("\n"));
复制代码
|