Hi,
this is venkatesh.
Q: I have 10 files in a folder(say D:\). Out of which there
are some .txt, .xls, .doc. I want to know how to get the
count of each file using qtp?
If U have any ans, plz write script for that...
Answer Posted / bathi
set fso=createobject("scripting.filesystemobject")
set objfolder=fso.getfolder("XXX")
set fil=objfolder.files
for each fils in fil
fils1=fils1&fils.name
next
xls=split(fils1,".xls")
msgbox ubound(xls)
doc=split(fils1,".doc")
msgbox ubound(doc)
txt=split(fils1,".txt")
msgbox ubound(txt)
I guess, this will work........
Good Day........
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
how to test Web application using QTP software
What is QTP’s model for test creation?
When you open QTP, how many sheets you can see?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points
What is the diff between image and bitmap check point?
Whats the realtime QTP testing process
How will you test a keyboard?
what is impact analysis on regression testing?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
diff between qtp versions from 8.5
What is object spy in quicktest professional?
Explain about the test fusion report of quicktest professional?
What is Associate Repository in QTP 9.2 ?
Difference between test object and run time object?