please clarify the question .................
i know how to open the notepad file ?
but i don't know how to enter the data into opened notepad ?

Ex: set a=createobject("wscript.shell")
a.run "Notepad.exe"

please give the replay.
my mail id is raju.ippali@gmial.com, 9823257761

Answer Posted / arun

sline="Hello"
Set fso = CreateObject("Scripting.FileSystemObject")
Set CreateFile = fso.CreateTextFile("c:\x1.txt",True)
CreateFile.close
Set OpenFile = fso.OpenTextFile("c:\x1.txt",8,True)
OpenFile.Writeline sline
OpenFile.Close

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we conduct U-I Testing by using QTP??????

1522


Can we use index on view?

1711


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

1610


What VBScript operators, functions, and statements do you use in QuickTest Professional?

2250


I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.

1695






What is Cross browser testing? Does UFT support it?

714


Write a script to verify font style and color of a windows object using descriptive programming

938


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

716


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1624


Explain about business process component? types and usage?

1650


hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale

1626


If you are testing a web application then what will you test in that application?

1633


What is reusable action?

691


what could go wrong with test automation?

1597


Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?

2423