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

It creates a new folder in the specified location.

Syntax: fso.CreateFolder(foldername)

Arguments:
fso: (Required) The name of a FileSystemObject object previously instantiated.
foldername: (Required) A character string expression that identifies the folder to create.

Example:    

Set fso=createobject("Scripting.FileSystemObject")
'Folder to be created Foldername="D:Folder_create"  
'If the folder doenot exst then create the folder.
If fso.FolderExists(Foldername) = false Then
 fso.CreateFolder (Foldername)
End If
Set fso=nothing

 




Next 5 interview question(s)

1
Method: CopyFolder?
2
Method: MoveFolder?
3
Method: DeleteFolder?
4
Method: DriveExists?
5
Method: FileExists?

Comments