executor.wcx
Moderators: Hacker, petermad, Stefan2, white
executor.wcx
executor.wcx (c)2008, Lev Freidin
executor.wcx is the UnPacker plugin which allows to execute definite commands depending on file extension. See the examples of usage in ini file.
You can use it with different comandline file converters. It can be useful for "unpacking" several files at once, for the text search inside the archive, where text searched is a result of some conversion (NOTE. the executor.wcx must be registered as a default unpacker for files with desired extension to be able to use the search inside archives function).
The nearest competition plugins are TCConv (Total Converter), MultiArc, MultiLister (former PDF Filter), TextSearch
executor.wcx is the UnPacker plugin which allows to execute definite commands depending on file extension. See the examples of usage in ini file.
You can use it with different comandline file converters. It can be useful for "unpacking" several files at once, for the text search inside the archive, where text searched is a result of some conversion (NOTE. the executor.wcx must be registered as a default unpacker for files with desired extension to be able to use the search inside archives function).
The nearest competition plugins are TCConv (Total Converter), MultiArc, MultiLister (former PDF Filter), TextSearch
Create a batch file, for instance called test.bat :Lev wrote:Could you post an example of a non-working command using environment variable?is it possible to add some env paths like the %commander_path%...
Code: Select all
@echo off
echo %1
echo %2
echo %3
pause
exit
Code: Select all
[txt]
fileout1="[N].test!.txt"
command1=c:\test.bat "filein" "fileout" %systemdrive%
log=1
ShowConsole=1
executor.ini :
[txt]
fileout1="[N].test!.txt"
command1=%systemdrive%\test.bat "filein" "fileout" %systemdrive%
log=1
ShowConsole=1
This time nothing happens.
Also, what about the 256 characters limit ? Are you planning to fix it ?
Thank you.
The env variables seems now working well but since the executor didn't allow the "" for the application line, it is impossible to use some, like the %programfiles% one, since it generally containing a space char.
Also, the length limit to 1024 still giving problems when using some very deep paths.
The env variables seems now working well but since the executor didn't allow the "" for the application line, it is impossible to use some, like the %programfiles% one, since it generally containing a space char.
Also, the length limit to 1024 still giving problems when using some very deep paths.
If you use the quotes, this is what happens :
ini :
log :
(notice that the first quote and the very last have disappeared from the entire line)
About the length limit, i dont know. What about something very deep, like 4096 or even 8192 ?
ini :
Code: Select all
command1="%programfiles%\test.cmd" "filein" "fileout"
(notice that the first quote and the very last have disappeared from the entire line)
Code: Select all
command1 = C:\Program Files\test.cmd" "T:\wincmd\wcx\executor\read_me.txt" "C:\read_me.test!.txt
Unfortunately GetPrivateProfileString command trims string enframing quotes while reading ini key value. You have to double enframing quotes to make it work right
or wait untill I write my own ini reading function
Code: Select all
command1=""%programfiles%\test.cmd" "filein" "fileout""
or wait untill I write my own ini reading function