Automation testing QTP with VB Script functions Interview questions


Total available count: 68
Subject - Software Testing
Subsubject - Automation testing QTP with VB Script functions

Method: DriveExists?

It determines whether or not a specified drive exists.

Syntax: fso.DriveExists (drivespec)

Arguments:
fso: (Required) The name of a FileSystemObject object previously instantiated.
drivespec: (Required) A drive letter or a complete path specification.

Example:  

Set fso=createobject("Scripting.FileSystemObject")
'The drive to check the existence.
drivepath="D:" 
 If fso.DriveExists(drivepath) then 
 msgbox  "Drive Exists"  Else    Msgbox "Drive doesnot Exist"
End If
Set fso=nothing

 




Next 5 interview question(s)

1
Method: FileExists?
2
Method: FolderExists?
3
Method: GetDrive?
4
Method: GetFolder?
5
Method: GetFile?

Comments