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
Which features or drawbacks of QTP lead to the upgrade for a newer version?
What are the features of quick test pro(qtp)?
What are the views available in quicktest professional?
who QTP recognizes the object stored in object repository?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
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))
How to handle the exceptions using the recovery scenario manager in qtp?
What r the different filters in defect in quality center
any body can you help me what is the script to automate an comand promt
What is the syntax for how to call one script from another?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
When using descriptive programming?
How will you check a web application for broken links using qtp?
Explain about the test fusion report of quicktest professional?