Set objLogParser = CreateObject("MSUtil.LogQuery") Set objInputFormat = CreateObject("MSUtil.LogQuery.FileSystemInputFormat") objInputFormat.Recurse = 0
Set objOutputFormat = CreateObject("MSUtil.LogQuery.NativeOutputFormat") objOutputFormat.rtp = -1
strQuery = "SELECT Name, CreationTime FROM 'C:/Scripts/*.*' " & _ "WHERE NOT Attributes LIKE '%D%' ORDER BY CreationTime" objLogParser.ExecuteBatch strQuery, objInputFormat, objOutputFormat