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

Answer Posted / sandeep

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




MsgBox coll.Count

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the object hyrarchy in QTP for a web based application

2094


What are the uses of vb script?

802


Explain the constants in vbscript?

748


Explain the filter expression?

842


How are comments handled in the vbscript language?

720


How will you get a combined string from array of string in vbscript?

734


Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

1927


Which operator is used to perform the comparison among 2 operands in the vbscript language?

714


what do you mean .ota mobile format

2200


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2392


Explain about arrays in vb script?

790


What is dictionary object in vbscript? Explain?

869


What is the difference between a dictionary and an array?

803


i have a problem with this error(this error related edit and delete button,when i click this button in datagrid..i will get this error)"Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." this is my code : <%@ Page Language="VB" Debug="false" %> <%@ import Namespace="Sytem.Data" %> <%@ import Namespace="System.Data.OleDB" %>

(Search Based On Staff I.C No) IC.No (XXXXXX-XX-XXXX)   ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> Total Leave Taken : Days

2518


What are class properties?

873