Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File properties of files in a folder and in all subfolders

Status
Not open for further replies.

tfujitani

Programmer
Nov 5, 2002
6
US
I need to get the creation dates for all files in a folder, including the files in any subfolders. I can get the creation dates for files in a folder but if there are a lot of subfolders the script gets really long.
 
See thread329-370893 and read it all the way through. This question was about doing something else with every file in every subfolder, but much of the same code given there can be recycled for your purpose.

I say read it ALL, because the original script presented had flaws, corrected in later posts to that thread.

The basic idea is that you must recurse the subfolders in a folder to be sure you reach every file. Using this approach you'll probably end up with a much shorter script. ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top