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
write any ttest cases using check points and parameterization
What is the difference between a dictionary and an array?
Explain the extension .hta?
How will you reverse a string in vbscript?
How will you get the smallest subscript of an array in vbscript?
Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.
How to write functions and sub in vb script?
while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
why variable name should not exceed 255 characters?
What is the difference between VBScript and JavaScript?
Anyone have qtp11.0 crack?
Mention what are the rules to name variable in vbscript?
Explain what is loose binding? Why is it not a good practice to use it?
How will you format a number in percetage format in vbscript?