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 |
hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time..and what property we should take while we r using descriptive programming for a link..
write a vbscrpit to swap values
write a vb script to rename a folder from tree4 to tree7
How to replace junk code recorded by QTP with a mall function.
When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?
3 Answers Logica CMG, McGraw Hill,
what is test scenario?
filter the array values without using filter function?
How can constants be declared in the vbscript language?
Why is error handling required?
how to write function to validate the number of characters entering into the text box?
How will you release the memory acquired by an array variable in vbscript?
how to write validation function for date in vb script