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

Display difference between 2 filecounts.

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



Joined: 13 Feb 2012
Posts: 19

PostPosted: Wed Feb 29, 2012 5:28 am    Post subject: Display difference between 2 filecounts. Reply with quote

Hi, I'm trying to do the following.

I have 2 folders :
-MPEG
-mp4

I'm doing a file-count on both of those folder, and I want HM to display the difference between those folders.


ex .
MPEG folder contains 4 files, ready to be converted.
mp4 folder contains 2 files.

HM should display "2" as a result (So I can see how many files still have to be converted (of file-count is equal, all encoding is done.)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Feb 29, 2012 6:18 am    Post subject: Reply with quote

Just count files and show difference?
Then you may setup 2 Count Files test items, use 1 of these tests as Master test for another, then mark "Tune up Reply value" for dependant test and use expression like [%::TestA::Reply% - %SuggestedReply%]

or you need to check each file name and detect non-existing files in 2nd folder?
Then you need to write your own script and call it using External or Shell Script test methods.

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



Joined: 13 Feb 2012
Posts: 19

PostPosted: Wed Feb 29, 2012 8:33 am    Post subject: Reply with quote

It's just for counting the difference, without checking extension, etc...

and what name do I have to give to the first variable %::TestA::Reply%?


edit : already found it it was just the full name of the master test.

Is there a way I can only display positive values? so if the result of the test is negative, it just displays a zero ?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Feb 29, 2012 8:46 am    Post subject: Reply with quote

Quote:
Is there a way I can only display positive values? so if the result of the test is negative, it just displays a zero ?

if ((%::TestA::Reply% - %SuggestedReply%)>0) [%::TestA::Reply% - %SuggestedReply%]; else 0
Back to top
View user's profile Send private message Visit poster's website
efiten



Joined: 13 Feb 2012
Posts: 19

PostPosted: Wed Feb 29, 2012 9:05 am    Post subject: Reply with quote

Is it really that simple?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Feb 29, 2012 9:11 am    Post subject: Reply with quote

Yes, it is
And there are some examples in the manual...

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
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