'========================================================================== ' NAME: ' ' AUTHOR: ed wilson , mred ' DATE : 4/5/200 'ver.1.2 'cleaned up code, added comments ' COMMENT: '5. Make sure you modify value for folderPath '========================================================================== Option Explicit On Error Resume Next Dim FolderPath 'Path to the folder to be searched for files Dim objFSO 'The fileSystemObject Dim objFolder 'The folder object Dim colFiles 'Collection of files from files method Dim objFile 'individual file object FolderPath = "c:\fso" Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(FolderPath) Set colFiles = objFolder.Files For Each objFile in colFiles WScript.Echo objFile.Name, objFile.Size & " bytes" WScript.Echo vbTab & "created: " & objFile.DateCreated WScript.Echo VbTab & "modified: " & objFile.DateLastModified Next