Help - How to process each target file in order of size ?
Posted: 30 Oct 2013 14:41
My script launches action by routine ":MY-C" upon each file with a folder "W:\SpeedTest\" with this :-
I am now into "brain fade" after debugging ":My-C" which is now working well.
Unfortunately the files are being processed in the wrong sequence.
I would like to process them in order of size -smallest file first, largest file last (though I could live with the opposite sequence)
Please tell me how to achieve this by fixing or replacing the the initial
Regards
Alan
Code: Select all
FOR %%f IN ("W:\SpeedTest\*.*") DO CALL :My-C "%%f"
I am now into "brain fade" after debugging ":My-C" which is now working well.
Unfortunately the files are being processed in the wrong sequence.
I would like to process them in order of size -smallest file first, largest file last (though I could live with the opposite sequence)
Please tell me how to achieve this by fixing or replacing the the initial
Code: Select all
FOR %%f IN ("W:\SpeedTest\*.*") ...
Regards
Alan