write a script to count no drives in file systems in qtp?



write a script to count no drives in file systems in qtp?..

Answer / sandeep

Set FSO=CreateObject("scripting.filesystemobject")
Set coll=fso.Drives




MsgBox coll.Count

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More VB Script Interview Questions

Compare java script and vb script?

1 Answers  


write a vb script to display the size of the folder,date created and name of the folder

1 Answers  


What are the advantages of vbscript?

1 Answers  


Anyone have qtp11.0 crack?

0 Answers  


Explain a few date functions in vbscript

1 Answers  


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

1 Answers   Tech Mahindra,


What purpose does ‘on error resume next’ serves?

1 Answers  


We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below

0 Answers  


how to increasing the numbers in a given text box please write a vb script

1 Answers  


What is the difference between do until loop and do while loop?

1 Answers  


How many data types are supported in Vbscript?

3 Answers   Microsoft,


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1 Answers  


Categories