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

write script to open Gmail.com, and to write script for entering username and password and show whether the result as pass or fail

2 Answers   Thomson Reuters,


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

0 Answers  


How can we return a value from User Defined Function ? For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var (c). Now i want to pass that var(c) to another function (fun2). What will be the script?

6 Answers   Nous,


how to add action through AOM in QTP

0 Answers  


. Program for sorting of numbers in vb script?

2 Answers   Talent Sprint,






In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.

2 Answers  


What is sql loader? Explain the files used by sql loader to load file?

0 Answers  


What is the technology used by vb script?

0 Answers  


what is fire event method in qtp?

3 Answers   TCS,


i have developed the below QTP script to count the no of items available in the web list "Select a product" in www.bankrate.com and also want to print what are the items??? can any one help me to rectify the below script??? SystemUtil.Run "iexplore.exe","www.bankrate.com" a=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetTOProperty("items count") msgbox a Dim List() ReDim List(a-1) For i = 1 To a List(i-1)=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page ("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetItem(i) Print List(i-1) Next

1 Answers  


What if you do not specify anything when you call a procedure?

0 Answers  


Mention what is the difference between vbscript and vba?

0 Answers  


Categories