上面的是POWERSHELL- @set @i=0 /* & @echo off
- cscript -nologo -E:JScript %0 "tmp0"
- pause & exit
- */
- var fso = new ActiveXObject('Scripting.FileSystemObject');
- var fi = fso.OpenTextFile(WSH.Arguments.Item(0), 1).ReadAll();
- var text = fi.replace(/([\r?\n]\s*)(\d+)\s/g,
- function($0,$1,$2) {
- return($1+new Date(new Date(1970/1/1).setSeconds($2) ).toUTCString());
- });
- fso.OpenTextFile(WSH.Arguments.Item(0), 2, true).Write(text);
复制代码
|