Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recently Created File or Folder
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi ,

Try with the below code for your query "How to get the files in a parent folder?"

Code:
Set objFileSysOb = CreateObject("Scripting.FileSystemObject")
Set colFolderName = objFileSysOb.GetFolder("Give your Parent Folder path here")
Set vFiles =colFolderName.Files
For each i in vFiles
   d=Split(i,"\")
   FileName=d(ubound(d))
   msgbox FileName
Next
Reply


Messages In This Thread
Recently Created File or Folder - by bfakruddin - 12-22-2009, 06:01 PM
RE: Recently Created File or Folder - by sreekanth chilam - 12-22-2009, 09:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating a folder from within a reusable action. sd3 2 3,186 06-18-2013, 03:20 PM
Last Post: learnQtptips
  How can i write a script in QTP to poll a folder for a new file? geethwind 5 5,460 05-19-2011, 07:04 PM
Last Post: deepaksporty
  Open lastmodified file in a folder vimal singh 1 2,199 04-26-2010, 05:02 PM
Last Post: manishbhalshankar
  Reusable Actions created in 9.2 not recognized in 9.5 varsi 1 2,482 04-06-2010, 03:26 PM
Last Post: funajju
  How to connect to Linux m/c from QTP script for validatating the new created dir rao 1 3,166 07-23-2009, 12:51 PM
Last Post: QTPian

Forum Jump:


Users browsing this thread: 2 Guest(s)