I am new at scripting and would like to know how I can get the number of files and subfolders under a root folder. I guess the equivalant of right clicking on a folder --> Properties and the information listed next to "Contains:". I am also displaying the folder size. Here is what I have so far.
Set objFSO = CreateObject("Scripting.FileSystemObject"
Set objCHARFolder = objFSO.GetFolder("c:\winnt"
SizeGB = objCHARFolder.Size / 1073741824
WScript.echo SizeGB & " GB"
Thanks in advance
Set objFSO = CreateObject("Scripting.FileSystemObject"
Set objCHARFolder = objFSO.GetFolder("c:\winnt"
SizeGB = objCHARFolder.Size / 1073741824
WScript.echo SizeGB & " GB"
Thanks in advance