本帖最后由 idwma 于 2021-12-9 15:46 编辑
回复 17# 司马光2008 - #@&cls&powershell "type %~s0|out-string|iex"&pause&exit
- do{
- dir D:\123\*.csv|foreach{
- $a="D:\456\"+$_.name
- move $_.fullname $_.fullname 2>$null
- if($?){
- sc $a ((type $_.fullname) -replace '^(\d+?,)(.*?):(.*?)(,.*?,.*?,.*?,.*?,.*?,.*?,.*?,.*?,)(.*?)(,.*)$','$1$3$4$2$6')
- del $_.fullname
- }
- }
- }while(!(sleep 1))
复制代码
|