idwma 当前离线
少校
@powershell "type '%~0'|select -skip 1|out-string|iex"&pause&exit $f='指定文件名.txt' foreach ($b in (dir -in $f -r)) { $a=gc $b.fullname; (echo 首行加入内容)>$b.fullname; $a>>$b.fullname; }复制代码
TOP
@powershell "type '%~0'|select -skip 1|out-string|iex"&pause&exit $f='指定文件名.txt' $c='首行加入内容' foreach ($b in (dir -in $f -r)) { $a=gc $b.fullname; $c,$a|out-file $b.fullname -Encoding utf8 }复制代码