MattNewToVB
Technical User
Hi, i am new to VBscript, i have a simple script to count files in set folders.
Set objFS = CreateObject("Scripting.FileSystemObject")
strFolder1 = "C:\f1"
strFolder2 = "C:\f2"
strFolder3 = "C:\f3"
Set objFolder1 = objFS.GetFolder(strFolder1)
Set objFolder2 = objFS.GetFolder(strFolder2)
Set objFolder3 = objFS.GetFolder(strFolder3)
WScript.Echo "1 ",objFolder1.Files.Count & vbCrLf & _
"2 " ,objFolder2.Files.Count -1 & vbCrLf & _
"3 " ,objFolder3.Files.Count & vbCrLf & vbCrLf & _
"Total Count " ,objFolder1.Files.Count + objFolder2.Files.Count + objFolder3.Files.Count -1
I would like the WSH popup to refresh it self after x amount of time, not close it down and reopen, is this possible ?
Thanks
Set objFS = CreateObject("Scripting.FileSystemObject")
strFolder1 = "C:\f1"
strFolder2 = "C:\f2"
strFolder3 = "C:\f3"
Set objFolder1 = objFS.GetFolder(strFolder1)
Set objFolder2 = objFS.GetFolder(strFolder2)
Set objFolder3 = objFS.GetFolder(strFolder3)
WScript.Echo "1 ",objFolder1.Files.Count & vbCrLf & _
"2 " ,objFolder2.Files.Count -1 & vbCrLf & _
"3 " ,objFolder3.Files.Count & vbCrLf & vbCrLf & _
"Total Count " ,objFolder1.Files.Count + objFolder2.Files.Count + objFolder3.Files.Count -1
I would like the WSH popup to refresh it self after x amount of time, not close it down and reopen, is this possible ?
Thanks