qixiaobin0715 当前在线
大校
set "str1=!str: m = m !" set "str1=!str:0 3=0 3!"复制代码
评分人数
TOP
set "str1=!str1:.txt:=,!"复制代码
newswan 当前离线
上尉
Get-Item *.txt | ForEach-Object { (Get-Content $_) -match "\s{3}\d+\s" ` -replace "^\s+(\d+)\s+([\d.]+)\s+",($_.BaseName + ",`$1,`$2,") ` -replace "\s+$","" ` -replace "\s{2,}","," ` -replace "(?=Baseplate)","," ` } | Out-File list复制代码
Get-Item *.txt | ForEach-Object { (Get-Content $_) -match "\s{3}\d+\s" ` -replace "^\s+(\d+)\s+([\d.]+)\s+",($_.BaseName + "`t`$1`t`$2`t") ` -replace "\s+$","" ` -replace "\s{2,}","`t" ` -replace "(?=Baseplate)","`t" ` } | Out-File list.csv复制代码
jave000 当前离线
二级士官
$dest = "D:\" Test-Path $dest\1复制代码