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 are class events?
How should i Create Email invite with server-side Coding?
What is a difference between scripting language and programming language?
Write a program to create a Dynamic array of size 5 elements and display all the elements.
How will you get a combined string from array of string in vbscript?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
When does ‘on click of button’ event gets triggered in the vbscript language?
i created script for login in QTP,i parametirized that using global sheet,problem i am facing is first i want to login with first values provided in excelsheet and want to perform some operation,second time if call same action it should login with second values in excelsheet
How to get path of the file through scripting?
What is Querystring collection?
What is the use of "Option Explicit"?
Mention how to access array data?