I found a couple of examples online.
This is one that will count the files:
dim oFS, oFolder, threshold
set oFS = WScript.CreateObject("Scripting.FileSystemObject")
set oFolder = oFS.GetFolder("your directory here")
ShowFolderDetails oFolder
sub ShowFolderDetails(oF)
dim F
wscript.echo...
Hello -
I'm in need of some VBScript code.
We have a directory in one of our servers where, if it reaches a certain number of files, certain functionalities will not operate.
What I am seeking is a code that will automatically send an email to a group of users if a certain directory reaches a...
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.