| View previous topic :: View next topic |
| Author |
Message |
Lev Junior Member


Joined: 14 Dec 2004 Posts: 82
|
Posted: Mon Apr 14, 2008 6:46 am Post subject: 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 |
|
| Back to top |
|
 |
byblo Member


Joined: 20 Feb 2005 Posts: 193
|
Posted: Sat Jul 12, 2008 9:00 pm Post subject: |
|
|
Nice plugin, looks like the CTconv.
But there is a little problem: the command do not seems supporting more than 256 characters.
Also, is it possible to add some env paths like the %commander_path% or %programfiles%, ect ? |
|
| Back to top |
|
 |
m^2 Power Member


Joined: 12 Jul 2006 Posts: 1414 Location: Poland
|
|
| Back to top |
|
 |
Lev Junior Member


Joined: 14 Dec 2004 Posts: 82
|
Posted: Mon Jul 14, 2008 6:34 am Post subject: |
|
|
| Quote: | | is it possible to add some env paths like the %commander_path%... |
Could you post an example of a non-working command using environment variable? |
|
| Back to top |
|
 |
byblo Member


Joined: 20 Feb 2005 Posts: 193
|
Posted: Mon Jul 14, 2008 3:52 pm Post subject: |
|
|
| Lev wrote: | | Quote: | | is it possible to add some env paths like the %commander_path%... |
Could you post an example of a non-working command using environment variable? |
Create a batch file, for instance called test.bat :
| Code: |
@echo off
echo %1
echo %2
echo %3
pause
exit
|
executor.ini :
| Code: |
[txt]
fileout1="[N].test!.txt"
command1=c:\test.bat "filein" "fileout" %systemdrive%
log=1
ShowConsole=1
|
That one seems working correctly, but now change the c: to %systemdrive% :
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 ? |
|
| Back to top |
|
 |
Lev Junior Member


Joined: 14 Dec 2004 Posts: 82
|
Posted: Tue Jul 15, 2008 7:07 am Post subject: |
|
|
try executor.wcx 0.0.0.5
[*] Tryed to fix support for %Environment_variables%
[+] 256 characters command length limit encreased to 1024 |
|
| Back to top |
|
 |
byblo Member


Joined: 20 Feb 2005 Posts: 193
|
Posted: Thu Jul 17, 2008 8:57 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Lev Junior Member


Joined: 14 Dec 2004 Posts: 82
|
Posted: Fri Jul 18, 2008 4:48 am Post subject: |
|
|
Enframe the whole path construction with quotes like "%programfiles%\SomeDir\SomeSubDir\..."
Check the executing command in the log file.
What length limit will do? |
|
| Back to top |
|
 |
byblo Member


Joined: 20 Feb 2005 Posts: 193
|
Posted: Fri Jul 18, 2008 6:50 pm Post subject: |
|
|
If you use the quotes, this is what happens :
ini :
| Code: |
command1="%programfiles%\test.cmd" "filein" "fileout"
|
log :
(notice that the first quote and the very last have disappeared from the entire line)
| Code: |
command1 = C:\Program Files\test.cmd" "T:\wincmd\wcx\executor\read_me.txt" "C:\read_me.test!.txt
|
About the length limit, i dont know. What about something very deep, like 4096 or even 8192 ? |
|
| Back to top |
|
 |
dott Senior Member


Joined: 03 Mar 2007 Posts: 285 Location: La Plata, Argentina
|
Posted: Fri Jul 18, 2008 11:42 pm Post subject: |
|
|
| I believe that 8192 is the limit for cmd.exe, in most cases should be enough. |
|
| Back to top |
|
 |
Lev Junior Member


Joined: 14 Dec 2004 Posts: 82
|
Posted: Mon Jul 21, 2008 6:27 am Post subject: |
|
|
Unfortunately GetPrivateProfileString command trims string enframing quotes while reading ini key value. You have to double enframing quotes to make it work right
| Code: | | command1=""%programfiles%\test.cmd" "filein" "fileout"" |
or wait untill I write my own ini reading function |
|
| Back to top |
|
 |
Hurdet Member

Joined: 10 May 2003 Posts: 178
|
Posted: Sun May 12, 2013 6:41 am Post subject: |
|
|
It not work for me.
if add
C:\ProgramFiles\TotalCmd\plugins\WCX\Executor\
to start of command
If i search inside the archive TC loop and not stop search. |
|
| Back to top |
|
 |
|