Display difference between 2 filecounts.

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
efiten
Posts: 19
Joined: Mon Feb 13, 2012 8:26 am

Display difference between 2 filecounts.

Post by efiten »

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.)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
efiten
Posts: 19
Joined: Mon Feb 13, 2012 8:26 am

Post by efiten »

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 ?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
efiten
Posts: 19
Joined: Mon Feb 13, 2012 8:26 am

Post by efiten »

Is it really that simple? :lol:
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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

Regards
Alex
Post Reply