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

1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1904


How to Test the mainframe application?

2050


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

2136


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

1819


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

835


What are the recording modes in qtp?

777


what is clean sweep?

2058


What is a quick test professional?

922


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

1735


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1726


Can we use index on view?

1834


I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...

1712


how do u plan test automation?

1661


I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

1963


how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer

1667