Set fs =CreateObject("scripting.filesystemobject") Set gs =CreateObject("scripting.filesystemobject") Set f=fs.opentextfile("url.txt",1,true) 'url.txt是要分割的txt文件,里面保存了几万个地址 n=0 do while f.atendofstream<>true n=n+1 data="" Set g=gs.opentextfile(CStr(n)+".lst",2, true) '分割后的文件保存为:1.lst 2.lst 3.lst…… if f.atendofstream<>true then for a=1 to 1000 '分割后,一个文件保存1000地址 data=f.readline g.writeline data next end if