View previous topic :: View next topic |
Author |
Message |
mlim
Joined: 25 Sep 2020 Posts: 4
|
Posted: Fri Sep 25, 2020 9:20 am Post subject: Count Files: Return the full path name without file mask |
|
|
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: *.* |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Sep 25, 2020 11:45 am Post subject: |
|
|
No, there is no such variable
Regards
Alex |
|
Back to top |
|
|
mlim
Joined: 25 Sep 2020 Posts: 4
|
Posted: Sat Sep 26, 2020 3:17 am Post subject: |
|
|
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' |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Sat Sep 26, 2020 11:43 am Post subject: |
|
|
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 |
|
Back to top |
|
|
mlim
Joined: 25 Sep 2020 Posts: 4
|
Posted: Mon Sep 28, 2020 9:19 am Post subject: |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Sep 28, 2020 10:15 am Post subject: |
|
|
I see. Ok, we will provide such update for you.
Please send request to support@ks-soft.net.
Regards
Alex |
|
Back to top |
|
|
mlim
Joined: 25 Sep 2020 Posts: 4
|
Posted: Mon Sep 28, 2020 10:22 am Post subject: |
|
|
Thanks Alex, will do. |
|
Back to top |
|
|
|