February 7, 2015
'####################################################################
'Working with FileSystemObject in VB Script for QTP/UFT
'Author: Vikas
'####################################################################
'1.Working with Folder/Directory
'1.1 How to Create a New Folder in QTP/UFT using VB Script(Visual Basic Script) ?
Dim objFso,objFolder
Set objFso=CreateObject("Scripting.FileSystemObject")
'this CreateFolder method shall create a new folder if it does not exists 'in "D:\Music" Drive
' else it will throw an error
Set objFolder=objFso.CreateFolder("D:\Music\New Folder1")
'Working with FileSystemObject in VB Script for QTP/UFT
'Author: Vikas
'####################################################################
'1.Working with Folder/Directory
'1.1 How to Create a New Folder in QTP/UFT using VB Script(Visual Basic Script) ?
Dim objFso,objFolder
Set objFso=CreateObject("Scripting.FileSystemObject")
'this CreateFolder method shall create a new folder if it does not exists 'in "D:\Music" Drive
' else it will throw an error
Set objFolder=objFso.CreateFolder("D:\Music\New Folder1")