bertieuk
IS-IT--Management
- Jun 1, 2004
- 175
Hi
I am writing a file sync vbs script which is almost complete now. The only two issues I seem to have are:
1) I want to count the number of files in a folder
2) I want to find the oldest file in a folder
I currently do the first as follows:
i = 0
For Each file in strTargetPath.Files
i = i + 1
Next
Is there a better way of doing it?
Thanks
Si
I am writing a file sync vbs script which is almost complete now. The only two issues I seem to have are:
1) I want to count the number of files in a folder
2) I want to find the oldest file in a folder
I currently do the first as follows:
i = 0
For Each file in strTargetPath.Files
i = i + 1
Next
Is there a better way of doing it?
Thanks
Si