KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Count Files: Return the full path name without file mask

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
mlim



Joined: 25 Sep 2020
Posts: 4

PostPosted: Fri Sep 25, 2020 9:20 am    Post subject: Count Files: Return the full path name without file mask Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Fri Sep 25, 2020 11:45 am    Post subject: Reply with quote

No, there is no such variable

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
mlim



Joined: 25 Sep 2020
Posts: 4

PostPosted: Sat Sep 26, 2020 3:17 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Sat Sep 26, 2020 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mlim



Joined: 25 Sep 2020
Posts: 4

PostPosted: Mon Sep 28, 2020 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Mon Sep 28, 2020 10:15 am    Post subject: Reply with quote

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

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
mlim



Joined: 25 Sep 2020
Posts: 4

PostPosted: Mon Sep 28, 2020 10:22 am    Post subject: Reply with quote

Thanks Alex, will do.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index