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

how to use command prompt using qtp?

Answer Posted / mahi

using "Wscript.Shell" object we can work on command prompt
in qtp.

'create one instance for "wscript.Shell"
set oShell=CreateObject("Wscript.Shell")
'using run method we can invoke application
'/k this will display command prompt.we can also use /c but
we can not see command prompt.It will disappear after
executeion.
oShell.Run "cmd /k dir"
'if we want use multiple commands we can use "&"(amp) symbol
oShell.run "cmd /k dir & md qtp"
set oShell=Nothing

I hope it will useful.
Regards,
Mahi.kotike@gmail.com

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which features or drawbacks of QTP lead to the upgrade for a newer version?

1019


What are the features of quick test pro(qtp)?

998


What are the views available in quicktest professional?

1013


who QTP recognizes the object stored in object repository?

2089


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2396


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

2116


How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

2102


How to handle the exceptions using the recovery scenario manager in qtp?

1027


What r the different filters in defect in quality center

3757


any body can you help me what is the script to automate an comand promt

2476


What is the syntax for how to call one script from another?

1032


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

992


When using descriptive programming?

1077


How will you check a web application for broken links using qtp?

1010


Explain about the test fusion report of quicktest professional?

935