07-21-2010, 10:47 AM
Hi,
you can use following steps to get the content in your log file. Then you can follow the logic mentioned by Basanth.
you can use following steps to get the content in your log file. Then you can follow the logic mentioned by Basanth.
Code:
Set MyClipboard = CreateObject("Mercury.Clipboard")
MyClipboard.Clear
SystemUtil.Run "c:\Debug-logs.txt","","","" 'this will open ur text file-provide the correct location for the file
wait 1
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^a" 'to select All the content of text file
WshShell.SendKeys "^c" 'copy
wait 2
a = MyClipboard.GetText 'here now 'a' contains all the texts that is in your log file