Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1683

fast way to count the number of running processes for a specific program

$
0
0
I've created a btm to process flac files in various ways; test them, convert wav to flac, reconvert a flac file to my compression settings, etc. I run the number of instances of flac.exe as I have threads. I've discovered that getting the number of currently running flac instances is slow. I use

rem numproc is the number of files I've processed. I skip the number of flac instances stuff until I get above the number of threads I have to save time.

:processfile [filename]
iff %numproc% ge...

Read more

Viewing all articles
Browse latest Browse all 1683

Trending Articles