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

Answers were Sorted based on User's Feedback



please clarify the question ................. i know how to open the notepad file ? but i don'..

Answer / xxx

the above answer is not correct

Is This Answer Correct ?    2 Yes 0 No

please clarify the question ................. i know how to open the notepad file ? but i don'..

Answer / sri satya

Dim a,b
Set a= CreateObject("Scripting.FileSystemObject")
Set b= a.CreateTextFile("c:\Test.txt")
b.Writeline("Hi Welcome To QTP")

Is This Answer Correct ?    2 Yes 0 No

please clarify the question ................. i know how to open the notepad file ? but i don'..

Answer / vibhav srivastav

I thik This Code will Work

set a=createobject("wscript.shell")
a.run "Notepad.exe"
Set Obj = Window("regexpwndtitle:= Notepad").WinEditor
("nativeclass:= Edit")
Obj.Click
a.Sendkeys "I Love QTP"

Is This Answer Correct ?    1 Yes 0 No

please clarify the question ................. i know how to open the notepad file ? but i don'..

Answer / kamal

set fso=createobject("scripting.filesystmeobject")
set fptr=opentextfile("c:\sample.txt",2,true)
fptr.writeline("this is sample program")
set fptr=nothing


in this 2 for write mode and true for if file doesn't
exist, it can create a new file sample.txt, if we give
false, it can open the file sample.txt which is already
exists.

Is This Answer Correct ?    1 Yes 1 No

please clarify the question ................. i know how to open the notepad file ? but i don'..

Answer / 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

please clarify the question ................. i know how to open the notepad file ? but i don'..

Answer / 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

More QTP Interview Questions

What is the life cycle of QTP? Pls Give me Exact answer?

6 Answers   Google,


hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?

4 Answers  


Ex : some mail name with surname Email id's there that is string fetch the particular surname only how to get particular surname all emails

1 Answers   Infosys,


Explain the difference between data driven testing and parameterization ?

0 Answers  


what testplan contents and what test strategy contents,what is the diff b/w them

0 Answers  






What is the limitation to XML Checkpoints?

1 Answers  


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

0 Answers  


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

0 Answers  


we have 10 actions in out test how can we convert 9th action is main action ? how ?

5 Answers  


hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every time 9 th one how can i select plese help me regards balaji

4 Answers  


What are the enhancements u did after recording ur script?

1 Answers  


what is the difference between an Action and a function in real time

4 Answers  


Categories