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 ENVIRONMENT VARIABLES?

6 Answers   Ordain Solutions,


QTP 9.2, Issue: Creating Shared Object repository. I recorded 2 scripts. I exported the Object Repository to a shared location for the first script. Associated the exported repository to the first script and deleted the Local Repository for the First Script. Now Opened the Second script and try to Add the Local Object Repository of 2nd Script to Exported Object Repository. But I fail. Can anyone please help in providing steps that need to be followed in creating a shared object repository? Thanks in Advance.

3 Answers   Google, UHG,


How qtp identifies objects?

0 Answers  


how to capture tool tip in QTP and which check point is needed

2 Answers   Syntel,


What is the use of text output value in quicktest professional?

0 Answers  






why you have standardized functions? plzzz guys with real time exp. do answer

0 Answers  


What is the parameterization?

0 Answers  


I want to clear the webedit field without using set"" in qtp script

1 Answers  


What is the use of Accessibility check point?

3 Answers  


Why a framework is needed?? Plaese post your answers ASAP

3 Answers   ACC, FD, Mphasis,


without Qtp features can we automated?

1 Answers   IBM,


What is the difference between Image Checkpoint and Bitmap Checkpoint?

8 Answers  


Categories