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
How software tester can use constants and variables in scripts?
What are the different ways to invoke an application using QTP?
What is object repository in qtp?
What is a programmatic description?
How does you pass optional arguments in qtp?
How you can find the absolute value of the number in qtp?
how can i pass a "cript"as a parameter in to a function
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
How does you test a weblink which is changing dynamically?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
What are advantages of test automation?
How to open a new test using quicktest professional?
Write a QTP script to enter a keyword in to Google search engine?
How can you write the scripts that operate on different objects depending on run-time information?
Explain the qtp test phases.