dusttosky 当前离线
列兵
aloha20200628 当前离线
上尉
@set @v=1 /* @echo off &dir /b/s/a-d *.asp|cscript /e:jscript "%~f0" &exit/b */ var wsIn=WSH.stdin; var ads=new ActiveXObject('adodb.stream'); var fso=new ActiveXObject('scripting.filesystemobject'); while (!wsIn.atendofstream) { var F=wsIn.readline() ads.type=2; ads.mode=3; ads.charset='gb2312'; ads.open(); ads.loadfromfile(F); var all=ads.readtext(); ads.close(); ads.charset='utf-8'; ads.open(); ads.writetext(all); ads.savetofile(F+'.tmp',2); ads.close(); ads.type=1; ads.open(); ads.loadfromfile(F+'.tmp'); ads.position=3; var all_3=ads.read(); ads.close(); ads.open(); ads.write(all_3); ads.savetofile(F,2); ads.close(); fso.deletefile(F+'.tmp'); } WSH.quit();复制代码
TOP
Five66 当前离线
77七 当前离线
中校
@echo off rem 下载 http://bcn.bathome.net/tool/coder.exe cd /d "%~dp0" for /r %%i in (*.asp) do ( coder -c auto utf-8 -f "%%i" >$ move $ "%%i" ) pause复制代码
wanghan519 当前离线
二级士官
gci *.txt -Recurse | %{gc $_.FullName -Encoding Oem | Out-File tmp.txt -Encoding utf8; move tmp.txt $_.FullName -Force}复制代码