In a VBSCript job you can use File collection to get the count; in a JAL script job you can use Dir and then loop and count number of returned entities; in a batch job you can use DOS "dir" command and then process the output using our LineCopy utility to get the last line of the output containing file count. Here is an example for VBScript: Dim fso, f, fc Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder("c:\myfolder") Set fc = f.Files MsgBox CStr(fc.Count) : Hi, : Is there an easy way to evluate number of files in a directory (file count). : Thanks : Gad
|