Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting count of the toral nos. files present inside a folder in Win7
#2
Solved: 10 Years, 9 Months, 3 Weeks ago
Hi Arijith,

For this type of requirements only we do have FSO(File system object).
Go thru the help file for FSO & implement accordingly.

Anyhow i am giving you the below solution.

Code:
Set objFileSysOb = CreateObject("Scripting.FileSystemObject")
Set colFolderName = objFileSysOb.GetFolder("give entire folder path here")
Set vFiles =colFolderName.Files
Sno=0
For each i in vFiles
d=Split(i,"\")
FileName=d(ubound(d))
Sno=Sno+1
msgbox "File "&Sno&" : "&FileName
Next

msgbox "Number of files in Current Folder : "&vFiles.count
Reply


Messages In This Thread
RE: Getting count of the toral nos. files present inside a folder in Win7 - by sreekanth chilam - 07-15-2009, 05:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing via create "RES"xx folder? nishitd 0 1,124 03-07-2018, 01:09 AM
Last Post: nishitd
  Set Value in JavaEdit Inside JavaTable yonobev 9 11,828 11-08-2017, 11:12 PM
Last Post: lotos
  Objects inside WpfList shinji458 23 21,472 11-08-2017, 10:54 PM
Last Post: lotos
  code for validation to create a sub folder smiley 0 1,439 10-19-2016, 10:08 PM
Last Post: smiley
  Get numbers inside all webelements in webtable and sort them pradeep537 1 2,587 08-04-2016, 01:24 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)