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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

710


What is an optional step in qtp ?

793


What is quicktest professional?

708


what type of run time errors you get while you ar edoing rpg program?

1647


how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)

1579






Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

1503


Whether qtp 9.0 supports Test director8.0

2279


How to use parameterization in qtp?

772


what is keyword driven testing in qtp?n how is it useful?

1624


What is difference in global and action sheet in qtp?

762


What is active screen?

680


Difference between copy to action and call to action?

729


To which environments does quicktest professional supports?

690


What is a quick test professional?

839


How to use the object spy in quicktest professional 8.0 version?

668