Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

executor.wcx

 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
Lev
Junior Member
Junior Member


Joined: 14 Dec 2004
Posts: 82

PostPosted: Mon Apr 14, 2008 6:46 am    Post subject: executor.wcx Reply with quote

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
View user's profile Send private message Send e-mail
byblo
Member
Member


Joined: 20 Feb 2005
Posts: 193

PostPosted: Sat Jul 12, 2008 9:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1414
Location: Poland

PostPosted: Sun Jul 13, 2008 1:02 am    Post subject: Reply with quote

Damn, I was going to release a different plugin with this name. Very Happy
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lev
Junior Member
Junior Member


Joined: 14 Dec 2004
Posts: 82

PostPosted: Mon Jul 14, 2008 6:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
byblo
Member
Member


Joined: 20 Feb 2005
Posts: 193

PostPosted: Mon Jul 14, 2008 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lev
Junior Member
Junior Member


Joined: 14 Dec 2004
Posts: 82

PostPosted: Tue Jul 15, 2008 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
byblo
Member
Member


Joined: 20 Feb 2005
Posts: 193

PostPosted: Thu Jul 17, 2008 8:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lev
Junior Member
Junior Member


Joined: 14 Dec 2004
Posts: 82

PostPosted: Fri Jul 18, 2008 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
byblo
Member
Member


Joined: 20 Feb 2005
Posts: 193

PostPosted: Fri Jul 18, 2008 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
dott
Senior Member
Senior Member


Joined: 03 Mar 2007
Posts: 285
Location: La Plata, Argentina

PostPosted: Fri Jul 18, 2008 11:42 pm    Post subject: Reply with quote

I believe that 8192 is the limit for cmd.exe, in most cases should be enough.
Back to top
View user's profile Send private message Send e-mail
Lev
Junior Member
Junior Member


Joined: 14 Dec 2004
Posts: 82

PostPosted: Mon Jul 21, 2008 6:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Hurdet
Member
Member


Joined: 10 May 2003
Posts: 178

PostPosted: Sun May 12, 2013 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group