Guys,
       just i am trying to copying txt from 1 file using ctrl A nd ctrl C
and paste it into 2nd file using ctrl V means sendkeys method.

Set wshshell=createobject("wscript.shell")
Set FsoObj=createobject("scripting.filesystemobject")
set filetxt1=FsoObj.OpenTextFile("D:\txtfile1.txt")

txtLine1=filetxt1.ReadAll
wshshell.SendKeys "^A"
wshshell.SendKeys "^C"
filetxt1.Close

Set CreateTxtFile=FsoObj.CreateTextFile("D:\txtfile2.txt")
Set filetxt2=FsoObj.OpenTextFile("D:\txtfile2.txt",2)
filetxt2.Write "hello"
wshshell.SendKeys "{Enter}"
'filetxt2.Write txtLine1
wshshell.SendKeys "^V"
wshshell.SendKeys "^S"

-- 
Akhalesh yadav
+919555717928

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to