list files in subfolders created in last 2 hours

I need to create an analysis that will list files in folder of folders. The folder is actually formatted: MMDDYY and I’m looking for the current day’s folder

This finds all the files in all the subdirectories: (find files "*.log" of (descendant folders of folders "z:\pims_logs\apbs" of folders of folder))

This comes close but not quite: ( names of files of it, modification times of it < now * 1 day ) of (files of folder of folders "z:\pims_logs\apbs") - it just lists one file and says it’s not unique

Can someone please help? Ideally, I’d just like a list of all the files in “z:\pims_logs\apbs\mmddyy” where mmddyy = the current day

Thanks.

Try this:

names of files of folder ("z:\pims_logs\apbs\"&(month of it as two digits as string & day_of_month of it as two digits as string & last 2 of (year of it as string)) of current date)

Then you can apply a whose (it) filter on the files objects if you need it more fine tuned.

1 Like

Perfect. Thanks so much!

1 Like

You're welcome. And welcome to the BigFix community.