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

It moves one or more folders from one location to another.

Syntax: fso.MoveFolder (source, destination)

Arguments:
fso: (Required) The name of a FileSystemObject object previously instantiated.
source: (Required) The path to the folder or folders to be moved. The source argument string can contain wildcard charactersin the last path component only.
destination: (Required) The path where the folder or folders are to be moved. The destination argument can't contain wildcard characters.

Example:    

Set fso=createobject("Scripting.FileSystemObject")
'Folder to be created SourcePath="D:Folder_move" DestinationPath="D:Destination".
'If the folder doesnot exst then create the folder
If fso.FolderExists(DestinationPath) = false Then
 fso.CreateFolder (DestinationPath)
End If
fso.MoveFolder  SourcePath,DestinationPath
Set fso=nothing

 




Next 5 interview question(s)

1
Method: Read?
2
Method: ReadAll?
3
Method: ReadLine?
4
Method: Write?
5
Method: WriteBlankLines?


Comments