Need a function that will accept a filename as parameter and then return the number of lines in that file.
Should be take under 30 seconds to get the count of a 10 m
You could try some variation on this
cnt = 0 Set fso = CreateObject("Scripting.FileSystemObject") Set theFile = fso.OpenTextFile(filespec, ForReading, False) Do While theFile.AtEndOfStream <> True theFile.SkipLine c = c + 1 Loop theFile.Close WScript.Echo c,"lines"