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 recovery scenario in qtp?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
Step 3&4 are repeated until an the object in recognised uniquely.
Explain how Does Run time data (Parameterization) is handled in QTP?
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
What is fragmentation and paging?
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
What is ‘object spy’ and what is the function of object spy in qtp?
What is the use of Debug Viewer?
Plz Explain AUTOMATION REFERENCE MODEL?
What is the use of ordinal identifier in qtp?
Are Shared ORs read-only?
How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric
How many types of parameters are there?
Explain quicktest professional (qtp) testing process?