I have added your code and all I get is a count of 0, no matter what directory I point it to. I have also tried changing the extension it is looking for to .txt
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder("C:\testlogs")
Set fc = f.Files
intCounter = 0
For Each...
Sorry,
here is the code that wont work because it counts all files in a folder.
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(strDelDir)
Set fc = f.Files
'Logs the file count in the log file
Const ForAppending = 8
Set objFSO =...
HI,
I am trying to create a vbscript to count specific file types (.IQ) in a folder and write that count to a text file. The only thing I can find is to count all files in a directory. Unfortunately there are several other file types in this specific folder and that code will not work in this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.