Answers were Sorted based on User's Feedback
Answer / shobhit kaul
hi frnds in the above answer(by king) there is only one
as inspite of creating object of quicktest.applicaton
you should create object of wscript.shell
The code is as::
app.sendkeys "~" 'its for enter key
app.sendkeys "default.xls" 'this xls should be any where
your c drive
Please correct me if i am wrong any where
my emai id is
|Is This Answer Correct ?||13 Yes||3 No|
using "Wscript.Shell" object we can work on command prompt
'create one instance for "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
oShell.Run "cmd /k dir"
'if we want use multiple commands we can use "&"(amp) symbol
oShell.run "cmd /k dir & md qtp"
I hope it will useful.
|Is This Answer Correct ?||9 Yes||5 No|
Answer / king
a.run "cmd /K CD C:\ & Dir"
|Is This Answer Correct ?||5 Yes||4 No|
Answer / r.prasad
u can open command prompt using following script also
|Is This Answer Correct ?||6 Yes||5 No|
Answer / king
SystemUtil.run "cmd.exe" 'the command prompt open
app.sendkeys "cd Foldername"
app.sendkeys "dir *.xls"
i think this is working properly accoring to my knowledge.
|Is This Answer Correct ?||4 Yes||3 No|
Answer / sandeep
To know ALL .XLS FILES in the folder. Please use file
Create file system object.
Check using fileExists method.
You can also make array of .xls file and return the array.
|Is This Answer Correct ?||1 Yes||1 No|
Answer / bathi
Thanks 4 the ans.
I want have still more clarification abt this. suppose I
want to know list all excel sheet present in some folder
using console. how can i do that?
|Is This Answer Correct ?||2 Yes||3 No|
Answer / ravi_kanakam
app.sendkeys showing error..
|Is This Answer Correct ?||2 Yes||5 No|
Can I change properties of a test object?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
what is the difference between testing and debugging?
What are the different types of checkpoints?
What is output value?
I am executing a batchfile.In one script on one Button i have inserted a checkpoint.It is in a loop,my checkpoint is going to fail sometimes.That failed results only I have to log in a file.How it's possible...pls give the solution for this?
What is deference between normal QTP testing and descriptive programming?
Difference between image checkpoint and bitmap checkpoint
Check point what is how many types of checkpoint and explain
Flight reservation using input and output parameter script.
How to analyzing Test Results using QTP?
What is a Run-Time Data Table? Where can I find and view this table?