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
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
What is an optional step in qtp ?
What is quicktest professional?
what type of run time errors you get while you ar edoing rpg program?
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 :)
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
Whether qtp 9.0 supports Test director8.0
How to use parameterization in qtp?
what is keyword driven testing in qtp?n how is it useful?
What is difference in global and action sheet in qtp?
What is active screen?
Difference between copy to action and call to action?
To which environments does quicktest professional supports?
What is a quick test professional?
How to use the object spy in quicktest professional 8.0 version?