Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jbarnie

    counting specific files in a directory

    Awesome, the alternative worked. Thanks
  2. jbarnie

    counting specific files in a directory

    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...
  3. jbarnie

    counting specific files in a directory

    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 =...
  4. jbarnie

    counting specific files in a directory

    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...

Part and Inventory Search

Back
Top