本帖最后由 pcl_test 于 2016-8-10 18:59 编辑
- <!-- :
- @echo off
- dir /a-d/b *.ass|mshta "%~f0"|find /v ""
- pause&exit
- -->
-
- //调用在线js脚本文件,需联网
- <script src=http://www.bathome.net/lib/diy/hide.js></script>
- <script src=http://www.bathome.net/lib/diy/iconv.js></script>
- <script src=http://img.diyifanwen.com/JS/inc/fantizi.js></script> //简转繁ftgo(),繁转简jtgo()
- <!--
- http://www.bathome.net/include/js/language.js
- 论坛自身的简转繁Traditionalized(),繁转简Simplized()
- -->
-
- <script>
- var fso = new ActiveXObject('Scripting.Filesystemobject');
- var type = 1; //0表示简转繁,1表示繁转简
-
- var files = fso.GetStandardStream(0).ReadAll().split(/\r\n/);
- for(var i=0; i<files.length; i++){
- var txt = iconv.load(files[i]);
- var b = iconv.checkBom(txt);
- if(b == 'undefined')var b = iconv.toStr(txt,'gb2312')?'gb2312':'utf-8';
- var ass = iconv.loadText(files[i], b);
- iconv.saveText(type==0?ftgo(ass):jtgo(ass), 'New_'+files[i], b);
- }
- fso.GetStandardStream(1).Write('Done');
- </script>
复制代码
|