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
Explain about operator precedence in vb script?
what is the object hyrarchy in QTP for a web based application
Which in-built function related to an array joins substrings into one string in the vbscript language?
Explain about filter expression?
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.
What is byref and byval parameters in vbscript?
Write a Script for ATM in QTP
How will you get the smallest subscript of an array in vbscript?
How to create a function in vbscript?
what is the features of visual basic?
Explain the operator precedence in vb script?
how to write validation function for date in vb script
How do you declare a variable in vbscript?
how does vb script help in web page designing? explain with example.
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