File/Folder availability

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
sapmeier1
Posts: 3
Joined: Mon Mar 14, 2016 7:16 am

File/Folder availability

Post by sapmeier1 »

Hello,
I need to check a lot of folders for the existence of files and older than 4 days. For a specific folder it's ok, but how can I check all subfolders?

Example:
C:\db\xx\test1.txt
C:\db\yy\test1.txt
C:\db\zz\test1.txt

I want to check C:\db and his subfolders in ONE test.
I have tried C:\db\*\*.txt and so on. It doesn't work.
Please help.

RG
Holger
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Count files test
c:\db
include subfolders

Regards
Alex
sapmeier1
Posts: 3
Joined: Mon Mar 14, 2016 7:16 am

Post by sapmeier1 »

Hi Alex,
i know, but I'm searching for files older than xx days in the subfolder.
I think that the only test for this is "folder/file availability".
RG
Holger
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you just need to know number of such old files and set Bad status (start actions) in some cases (e.g. if 1 or more old files detected), you can use Count Files test. Please check settings - there is option to check file age.

If you need to get list of all these old files, you have to create your own test, e.g. using Shell Script test method.

Regards
Alex
sapmeier1
Posts: 3
Joined: Mon Mar 14, 2016 7:16 am

Post by sapmeier1 »

Hi Alex,
ahhhhhhhh! That's right. I don't see the pulldown :roll:
That's what I Need.
Thanks a lot.
Nice Weekend.
Regards
Holger
Post Reply