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: DeleteFolder?

It deletes the specified folder and its contents.

Syntax: fso.DeleteFolder (folderspec[, force])

Arguments:
fso: (Required) The name of a FileSystemObject object previously instantiated.
folderspec: (Required) The name of the folder to delete. The folderspec can contain wildcard characters in the last path component.
force: (Optional) Boolean value that is True of folders with the read-only attribute set are to be deleted;False if they are not. False is the default.

Example:  

Set fso=createobject("Scripting.FileSystemObject")
'Folder to be  deleted.  FolderDel="D:final1"  'Delete the folder.
fso.DeleteFolder(FolderDel)
Set fso=nothing

 




Next 5 interview question(s)

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

Comments