write a Vb script to find a whther a selected drive exits.
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 |
pls tell me which is good book or site for vbscript?
Which date function is used in the vbscript language to find the difference between the 2 dates?
If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?
What is the difference between do until loop and do while loop?
What are the uses of vb script?
What is the use of the date function in the vbscript language?
Input = 124 output should be 124421 Please do not use any string functions/variables
explain with example primitive data types of vb script.
Mention characteristics of sub procedures?
Which event is triggered when mouse focus comes out of an element in the vbscript language?
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting
What is the purpose of drive object of scripting.filesystemobject class in vbscript?