how to use command prompt using qtp?

Answer Posted / king

Hi Bathi,

dim app
set app=createobject("QuickTest.application")
SystemUtil.run "cmd.exe" 'the command prompt open
app.sendkeys "cd\"
app.sendkeys "~"
app.sendkeys "cd Foldername"
app.sendkeys "~"
app.sendkeys "dir *.xls"
app.sendkeys "~"

i think this is working properly accoring to my knowledge.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

633


How does qtp recognize objects in aut?

592


Why we load add-ins in qtp?

626


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1677


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

568






QTP script is not working on other's machine..

1537


How to write business scripts using object repository with different scenarios

1390


when will you do debug your script? and explain that process?

1453


What is Port testing. Whhen will you perform?

1498


How to test the login page in different ways in automation testing and i need code?

1348


What are the key elements available in test result window?

627


How to find the path of folder in which the test is saved in qtp?

534


Object repositories types, which and when to use?

579


What are the different types of recording modes in qtp? Which will be used when?

571


Explain in brief about the quicktest professional automation object model?

517