Tagged with " VBS"

Last-modified time comparison

Sep 17, 2010 by     No Comments    Posted under: Tips & Techniques

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:

  1. If the file in the first folder is not found in the second …
  2. 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 »
Check out the BioNews, a very handy daily recap of the latest industry news!