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 |
what is the standards used for writing the script in QTP
How will you release the memory acquired by an array variable in vbscript?
How you can call vbscript functions?
WHAT IS ENVIRONMENT VARIABLES?and where it is used in real time scenario?
Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario
How to create a function in vbscript?
how to write validation function for date in vb script
what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next
What's the difference between vbscript and vb.net?
write a vb script to calculate factorial of a number?
Which object provide information about a single runtime error in a vbscript?
How can I get the value of an object property or variable in another frame?