JS- @set @n=0//& cscript.exe -e:jscript "%~f0"& exit/b
- f='a.txt';
- fso=new ActiveXObject('Scripting.FileSystemObject');
- s=fso.OpenTextFile(f).ReadAll();
- s=s.replace(/^ +/gm, function(s0){return s0.replace(/ /g,'..');});
- fso.OpenTextFile(f+'~', 2, true).Write(s);
复制代码
|