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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Shall we add Local Repository to shared object repository,if yes,how we add

6585


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1596


what is the difference between the modular framework and datadriven frame work

2123


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

2169


What are private functions in QTP? How they can be called from the function library?

802


What is recovery scenario in qtp?

760


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

6646


how can i pass a "cript"as a parameter in to a function

1650


how to test use the quality control .how to verify the image verification

2797


Explain how you can replace string in qtp?

799


Explain different checkpoints in qtp.

953


What are the properties you would use for identifying a browser and page when using descriptive programming?

794


Which functionalities of QTP used in banking project? pls any say answer?

1636


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1897


What is the keyword view and expert view in qtp?

732