import string.ex;
import win;
import fsys;
io.open()
全局排重 = {}

fsys.enum("\待排重文件目录\","*.*",
function(dir,filename){
	if(filename){ 
	   var path = io.splitpath(filename)
	   var newstr = string.distinct( string.load(filename),'\n', 全局排重)
	   string.save("\排重结果\" + path.name + ".txt",newstr )
	   io.print( filename )

	}
} )

io.print("正在保存重复项统计数据")

var f = io.open("\重复项目统计.txt","a+")
for(k,v in 全局排重 ){
   if(v >1){
   f.write(k," ",tostring(v ),'\n')
   }
}
io.print("ok")