Ad Home

Theme images by kelvinjay. Powered by Blogger.

Travel

Header Ads

Java

Selenium

UFT

Framework

General QA Concept

BDD

» » Collection(names) of Subfolders in a Folder in QTP

Script in QTP to get Collection(names) of Subfolders in a Folder.Below script is to get Subfolders names in Folder V1Where Folder V1 is in Fdrive.
Dim a,b, c, d, e
Set a = CreateObject("Scripting.FileSystemObject")
Set b = a.GetFolder("C:\Animesh")
Set c = b.SubFolders
For Each d in c
e=e&d.name&vbnewline
Next
msgbox e

«
Next
Newer Post
»
Previous
Older Post

No comments:

Leave a Reply