Like us on Facebook

Showing posts with label VB Script. Show all posts
Showing posts with label VB Script. Show all posts

February 7, 2015

Access Folder/Dir in FileSystemObject in VB Script for UFT/QTP

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")

.
© 2014-2015 Informational Digit : How-To & Tech Guides. The content is copyrighted to Vikas Pandey and may not be reproduced on other websites. WP themonic converted by Bloggertheme9.
TOP