I posted earlier re comparing files. Wrote a program which is complete except for one thing- I want to display a progress meter which is working, but not working correctly.
Here's the code...
Now, each "x" shows up for each file scanned, but ONLY when the files are displayed as being different - not per file (the whole line of accumulated x's are only displayed when the "DIFFERENCE FOUND" line is displayed.)
i.e.
Quote:
xx
DIFFERENCE FOUND BETWEEEN:
c:\123.txt
and
d:\123.txt
xxxxxxxxxxxxxxxxxx
DIFFERENCE FOUND BETWEEN:
c:\somedir\456.doc
and
d:\somedir\456.doc
xxxxxxxxxxx
DIFFERENCE FOUND BETWEEN:
c:\789.java
and
d:\789.java
|
How can I get each "x" to show up one after another like a progress meter on EVERY RUN THRU THE FOREACH LOOP so I can be sure that the script isn't hung as opposed to just scanning large or multiple files?
Minor issue as it doesn't exactly affect performance, but the few brain cells I have left are failing me and I want to be sure the script is working when my boss turns the corner.
Much appreciated!
(Chas- care to take a stab at this?)
Adam