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 / m.s.patil
Dim fso,filepath
Set fso =CreateObject("Scripting.FileSystemObject")
Set filePath =fso.CreateTextFile("C:\mpatil3.txt")
filePath.WriteLine ("This is sample code")
filepath.Close
Set fso =Nothing
I have tested this and it works fine.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is the latest version of QTP? Main difference between 9.2 and 10 version
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
please post the interview questions for QA position in FACTSET
How many types of parameters are available in quicktest professional?
What are the differences between quicktest professional (qtp) and winrunner?
What is system testing and what are the different types of tests you perform in system testing?
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing
What is the synchronization point in qtp?
What are the different attribute used with regular expression?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.