Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How software tester can use constants and variables in scripts?

2293


What are the different ways to invoke an application using QTP?

1223


What is object repository in qtp?

1076


What is a programmatic description?

1158


How does you pass optional arguments in qtp?

1081


How you can find the absolute value of the number in qtp?

1060


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

2046


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

2038


How does you test a weblink which is changing dynamically?

1056


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

2072


What are advantages of test automation?

1190


How to open a new test using quicktest professional?

1080


Write a QTP script to enter a keyword in to Google search engine?

1095


How can you write the scripts that operate on different objects depending on run-time information?

2644


Explain the qtp test phases.

1085