write a Vb script to find a whther a selected drive exits.
Answer Posted / cnu_thatavarthi
Option Explicit
Dim objFso, objFile,iCount,strDrivers
Set objFso = CreateObject("Scripting.FilesystemObject")
MsgBox objFso.Drives.Count
For iCount = 1 To objFso.Drives.Count
strDrivers = strDrivers & vbNewLine &objFso.Drives.Item(iCount).DriveType
Next
MsgBox strDrivers
If objFso.DriveExists("iTunes") Then
MsgBox "Driver is Exists"
Else
MsgBox "Drive is not exists"
End if
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between do until loop and do while loop?
Which keyword is used to declare a variable in the vbscript language?
when we use filter funtiom invb script(QTP)
Mention what are the rules to name variable in vbscript?
Explain sga memory structures?
Explain about scrrun.dll in vbscript?
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
how to set one column as primary key in QTP and fetch values accordingly
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
How will you format a number in percetage format in vbscript?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
Which loop is used in case of arrays in the vbscript language?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......