Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to save a text file automatically and search for some keywords
#5
Not Solved
Hi,
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
Reply


Messages In This Thread
RE: Parsing Debugview output automatically using QTP - by sasmitakumari - 07-21-2010, 10:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CyberArk CorePAS REST API to search for accounts pramod 0 837 06-29-2023, 03:11 PM
Last Post: pramod
MyBB how can i automatically click ok button in msgbox popup test 11 24,861 07-12-2022, 11:50 PM
Last Post: akash warke
  Extract and save a file from zip folder using VB Script karthicksri07 1 6,426 06-29-2016, 02:19 PM
Last Post: Ankesh
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,894 09-13-2015, 12:06 AM
Last Post: ADITI1992
  How to retrieve specied string from text file nsuresh316 1 2,467 06-09-2015, 12:24 AM
Last Post: nsuresh316

Forum Jump:


Users browsing this thread: 1 Guest(s)