本帖最后由 CrLf 于 2015-3-8 01:40 编辑
- @echo off
- dir /b "D:/数据1/*.txt"|mshta "%~f0"
- pause & exit /b
-
- <script src=http://www.bathome.net/lib/diy/WSH.js></script>
- <script src=http://www.bathome.net/lib/diy/hide.js></script>
- <script src=http://www.bathome.net/lib/diy/Function.js></script>
-
- <script>
- var list = {
- 0:"0369", 3:"0369", 6:"0369", 9:"0369", 1:"147",
- 4:"147", 7:"147", 2:"258", 5:"258", 8:"258"
- }
-
- var dir = WScript.StdIn.ReadAll().split(/\r?\n/)
-
- for(var i in dir){
- var text = type(dir[i])
- .replace(/./g,function(c){
- return c in list ? list[c] : c
- })
- createfile(dir[i],1).Write(text)
- }
- </script>
复制代码
|