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 |
Why is the use of exit do or exit for statements within loops discouraged?
write a vbscrpit to swap values
which one is more secure vb script or java script ??????? or both are same ??????
What is the main difference between function and sub-procedure?
How can you have different number of cells for each row of a table in HTML?
Is VBscript case-sensitive?
Mention what are the rules to name variable in vbscript?
How to pass the parameter from one function to another function in VB Scripting?
Mention the environments where vbscript could be run?
Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to proceed further that i dont know. Thanks in advance
how to add the shared repository file to the script file while running the script manuall
Explain about tristate constants in vbscript?