回复 14# PowerShell
好 发在这里
测试 “http://pan.baidu.com/s/1kTIBpMR” 顶楼提供数据 5分钟以内完成 可能机器配置的关系- @if (0)==(0) echo off
- for /f "delims=" %%i in ('dir /a-d/b *.txt') do cscript //nologo //E:JScript "%~f0" <"%%i">#&move# "%%i" >nul
- pause&exit
- @end;
- String.prototype.strreg = function() {
- return this.replace
- (/(.+?;)(\d+|\d+(\.\d+));(\d+|\d+(\.\d+));(\d+|\d+(\.\d+));(\d+|\d+(\.\d+));(\d+|\d+(\.\d+));(\d+|\d+(\.\d+))$/gm,
- function(a,b,c,d,e,f,g,h,j,k,l,m,n) {
- return b + (Math.floor(c*100)/100).toFixed(3) + ";" + (Math.floor(e*100)/100).toFixed(3) + ";" + (Math.floor(g*100)/100).toFixed(3) + ";" + (Math.floor(j*100)/100).toFixed(3) + ";" + (Math.floor(l*100)/100).toFixed(2) + ";" + (Math.floor(n*100)/100).toFixed(2);
- });
- };
- WScript.echo(WScript.StdIn.ReadAll().strreg())
复制代码
|