Hello,
after looking into it, it kind of works:
1) with es.exe: I used an xargs windows replacement called wargs (MIT license,
https://github.com/idigdoug/TextTools).
e.g. to process the search results with 4 processes in parallel :
Code: Select all
es -double-quote ext:jpg roof_ | wargs -P 4 -I f jpegrecompress.bat f
For accentuated characters (wconv is provided with wargs):
Code: Select all
es -double-quote ext:jpg roof_ | wconv -f utf8 | wargs -P 4 -I f jpegrecompress.bat f
I find it limiting though (difficult to visualize or edit the list, that is the interest of everything).
2) with everything:
using sendto with a batch seems an issue (argument limited to 8191 characters, quickly reached with many files).
Alternatives for communication include the clipboard (works but does not feel like a good idea) or saving a temporary file:
-
Code: Select all
wconv -f utf8 tmp.txt | wargs -P 4 -I f jpegrecompress.bat f
where tmp.txt is the list of files with double quotes (easy to copy paste and possibly edit the file).
-
Code: Select all
for /F "skip=1 tokens=1 delims=," %i in (test.efu) do @echo %i | wconv -f utf8 | wargs -P 4 -I f jpegrecompress.bat f
to use directly an efu file (e.g. generated with the file list editor). That may be the best way (also keeps a trace of the original files). I did a small script wrapper if anyone is interested.
I think it would still be cool one day to do all that directly in everything.
In principle, it seems very similar to the advanced rename: instead of rename, execute a script (selected by the user) taking the filename (source and target) as argument. It would add a batch processor functionality in a way (a bit like virtualdub for example but more open).
Multiple jobs in parallel would be the cherry on the cake.
Anyhow.
Thanks for everything
![Wink ;-)](./images/smilies/icon_e_wink.gif)
Philippe