Count Files: Return the full path name without file mask

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
mlim
Posts: 4
Joined: Fri Sep 25, 2020 8:46 am

Count Files: Return the full path name without file mask

Post by mlim »

Hi,

it is possible to return the folder name without file mask in the "Count Files" test?

Example:
Folder: \\server1\e\archive
File name mask: *.*


I was only able to find these variables:

%Path% returns the full path to the folder plus file mask: \\server1\e\archive\*.*
%Object% returns the Folder name: archive
%Object2% returns the file mask used for the test: *.*
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No, there is no such variable

Regards
Alex
mlim
Posts: 4
Joined: Fri Sep 25, 2020 8:46 am

Post by mlim »

How can I change this to a feature request?


Use case:

When using %Path% in email notifications, the UNC path is displayed as hyperlink (in Outlook).

But the file mask is causing a problem because when clicking on it, an error pops up: "Cannot find file '\\server1\e\archive\*.*'. Verify the path or Internet address is correct."

The hyperlink works fine without the file mask: '\\server1\e\archive'
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Do you need this for several test items? or you have 1000 tests that require this option?
In 1st case you may simply specify path you need in comment field and use variable like %CommentLine1% or %CommentLine2% in e-mail template

Regards
Alex
mlim
Posts: 4
Joined: Fri Sep 25, 2020 8:46 am

Post by mlim »

Starting with a couple of dozen or so but will be adding more. I wanted to avoid entering this manually for each alert because this is easily missed when changing the path or copying alerts.

For instance, I am already using %CommentLine2% to enter the "Count files older than" value (e.g. "60 minutes"). What happened a few times is that I changed the value in the textbox but forgot to update %CommentLine2% accordingly because the CommentLine variables are only visible after clicking on the "Edit comment lines" button. This is where a variable would be very useful, too.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I see. Ok, we will provide such update for you.
Please send request to support@ks-soft.net.

Regards
Alex
mlim
Posts: 4
Joined: Fri Sep 25, 2020 8:46 am

Post by mlim »

Thanks Alex, will do.
Post Reply