lst2xxx: advices needed

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

lst2xxx: advices needed

Post by *JackFoo »

Hi, I've at last decided to write an implementation to do the following:
* it basically does the same as Christians batch creator, only it executes it instantanuasly and doesn't create a batch file. I'm going to use it when extracting multiple .ape files to .wav's and so on.

run a specified command for each line in the list file;

for example:
command:

Code: Select all

lst2xxx -e "encode.exe" -s "-e %p\%f\%e -o %p\%\f.new" -l file.lst
file.lst:
c:\file1.wav
c:\file2.wav
c:\file3.wav

would do:
encode.exe -e c:\file1.wav -o c:\file1.new
for each line in file.lst, waiting for each thread to finish before starting a new one.

%p = path
%f = file name
%e = extension

I was wandering about the following (mostly GUI):
1. What other placeholders can be usefull.
2. I was thinking of adding a [wait] parameter in ms. or 0 to wait for previous thread to stop.
3. I'm not sure yet how to implement the calls, should my program be command line or windows; how should the calls be implemented, different command line interfaces or in the same one?
4. last but not the list I need fitting 3 or 4 letters to replace the xxx in the name...

* about [3]:

Cheers.
Post Reply