Tagged with " VBS"
Last-modified time comparison
The following script written in VBS is to compare the last-modified dates of pairs of files with the same name in two different folders. Two types of output are available:
- If the file in the first folder is not found in the second …
- If the last modified dates are different …
To use the code, substitute “[path1]” and “[path2]” with your own, as well as modifiy the filename matching condition to fit your need.
With CreateObject("Scripting.FileSystemObject") ' Generic part
For Each f In .GetFolder("[path1]").Files ' Get the first folder
' The following filtration condition is flawed in the sense that it is case-sensitive Read more »Categories
- Best Practices (3)
- Best-Practices (16)
- BioNews (3)
- Business Best Practices (5)
- Case studies (2)
- CDISC (11)
- Clinical Data Management (6)
- Clinical Stories (1)
- Code (13)
- EDC (7)
- Event (3)
- Events (7)
- Menu (3)
- Monthly Contest (12)
- New Technologies (15)
- OpenClinica (2)
- SAS Library (4)
- Scripting (2)
- Tips & Techniques (14)
- Trends (11)




Posted under: 