I have the following code
Set objLogParser = CreateObject("MSUtil.LogQuery")
Set objinputFormat = CreateObject("MSUtil.LogQuery.CSVInputFormat")
Set objOutputFormat = CreateObject("MSUtil.LogQuery.ChartOutputFormat")
objOutputFormat.chartType = "ColumnClustered" 'ExplodedPie, Line, ScatteredLine
objOutputFormat.Values = "ON"
lp_input_file = "C:\Windows\Temp\output\log_parser\a\*.*_temp.txt"
lp_output_file = "C:\Windows\Temp\hh_in_self.gif"
strQuery = "SELECT dept,battery as GRAPH into " & lp_output_file & " FROM " & lp_input_file objLogParser.ExecuteBatch strQuery, objInputFormat, objOutputFormat
And it works fine and as expected a graph is generated.
However I would like the strQuery to also search for *.*_temp.txt files within
C:\Windows\Temp\output\log_parser\b\*.*_temp.txt"
C:\Windows\Temp\output\log_parser\c\*.*_temp.txt"
C:\Windows\Temp\output\log_parser\d\*.*_temp.txt"
C:\Windows\Temp\output\log_parser\e\*.*_temp.txt"
etc etc
How can I code this, can some one please show me?