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

What is the difference between Javascript & Vbscript?

2 Answers  


Explain about tristate constants in vbscript?

0 Answers  


how to declare a variable in vbscript using vbscript

4 Answers  


Which event is triggered when mouse focus comes out of an element in the vbscript language?

0 Answers  


Mention what is vbscript?

0 Answers  






Hi everybady, i have faced few Qns in one of i attended interview, please help me out with these below Qns. 1. how to join values without using join function? 2. how to compare values without using String compare function? 3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome B A N G A L o R E 4. Input is "CapGemini" but uotput should be like this "inimeGpaC" 5. Input is 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Can someone let me know results of this Qns, please. Thanks.

2 Answers   CSS Corp,


There is a web Table where You will find Two Columns First Column consist of Check box and Second column consist of Test cases ID(Viz T1,T2,T3....Etc); If You select any Test case ID, respective Check boxes to be checked write a VBSCRIPT for this scenario?

1 Answers   eMids,


how to add the shared repository file to the script file while running the script manuall

2 Answers  


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

0 Answers  


write a text script to display * as below ********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********

1 Answers  


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

0 Answers  


write a vb script to display the code "vbscripting" alphabet by alphabet(i e 1st v then b and up to g)

2 Answers  


Categories