Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.
Moderators: Hacker , petermad , Stefan2 , white
nsp
Power Member
Posts: 1912 Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:
Post
by *nsp » 2007-11-27, 12:16 UTC
Carolina wrote:
First I'm new to Total Commander;-), but I don't get this plugin to work.
I've created a new subfolder XDOC (like PDF and ODF given by the plugin) and extracted the xdoc2txt.exe (v1.26).
Then I've updated the TextSearch.ini with the text from above, but when I search ~300 .html files I didn't get any match.
I use such definition with 1.26 version :
Code: Select all
XDOC=%COMSPEC% /C CONV\XDOC\XDOC2TXT.EXE -n -o=0 -c "{In}">"{Out}"
it seems to work for me !
Alextp
Power Member
Posts: 2321 Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:
Post
by *Alextp » 2007-11-27, 13:11 UTC
2Carolina
Maybe you extracted "xdoc2txt.exe" not to the Conv folder of plugin folder?
It works here OK.
BTW, I may include "xdoc2txt.exe" into TextSearch archive, if author give me such permission. I wrote him, no reply.
Carolina
Junior Member
Posts: 2 Joined: 2007-11-27, 10:36 UTC
Post
by *Carolina » 2007-11-27, 13:21 UTC
nsp wrote:
Code: Select all
XDOC=%COMSPEC% /C CONV\XDOC\XDOC2TXT.EXE -n -o=0 -c "{In}">"{Out}"
it seems to work for me !
Hmmm, same result as before... nothing... ;-(
Edit: Ah... my mistake... not .html files but .htm... *damn*
Everything is working fine now. Thanks...
Dreamer
Junior Member
Posts: 77 Joined: 2004-12-22, 00:52 UTC
Post
by *Dreamer » 2008-02-22, 05:05 UTC
theosdikaios wrote:
It works fine with TextSearch if TextSearch.ini contains this lines:
TextSearch.ini wrote: ; xdoc2txt
XDOC=%COMSPEC% /CCONV\XDOC\XDOC2TXT.EXE "{In}">"{Out}"
docx=XDOC
docm=XDOC
xlsx=XDOC
xlsm=XDOC
pptx=XDOC
pptm=XDOC
doc=XDOC
xls=XDOC
ppt=XDOC
pdf=XDOC
html=XDOC
Why I can only search .Doc files, can't search .XLS and .PPT files?
Dreamer
Junior Member
Posts: 77 Joined: 2004-12-22, 00:52 UTC
Post
by *Dreamer » 2008-02-22, 05:56 UTC
I know why.
Xdoc2txt can convert .doc file in Chinese to txt perfectly.
But it can't convert .xls and .ppt files's Chinese characters.
m^2
Power Member
Posts: 1413 Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:
Post
by *m^2 » 2009-02-21, 19:25 UTC
Alex, could you add option to search for ANSI / UTF text in binary files?
Alextp
Power Member
Posts: 2321 Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:
Post
by *Alextp » 2009-02-22, 14:20 UTC
2m^2
it's done. I have option for encoding of *any file: see Readme...
m^2
Power Member
Posts: 1413 Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:
Post
by *m^2 » 2009-02-22, 14:35 UTC
I missed it, thanks.
m^2
Power Member
Posts: 1413 Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:
Post
by *m^2 » 2009-04-20, 22:35 UTC
I'm currently doing a search for some text in a large collection of PDFs.
xdoc2txt crashed twice.
Suggestion: can you detect such situation and give some hint about a file on which it happened?
I'd like to submit a but to xdoc2txt devs, but binsearch through the pdfs would take long...
Alextp
Power Member
Posts: 2321 Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:
Post
by *Alextp » 2009-04-21, 06:32 UTC
i can detect, that converter still gives no out file.
Then i can show errorbox.
m^2
Power Member
Posts: 1413 Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:
Post
by *m^2 » 2009-04-21, 06:37 UTC
That would be nice.
EDIT:
..or maybe not. With incorrect files this could give a lot of unnecessary messages.
How about checking return codes?
Alextp
Power Member
Posts: 2321 Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:
Post
by *Alextp » 2009-04-21, 07:17 UTC
for crashed app you'll have no return code..
m^2
Power Member
Posts: 1413 Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:
Post
by *m^2 » 2009-04-21, 07:29 UTC
http://msdn.microsoft.com/en-us/library/ms683189.aspx :
If the process has terminated and the function succeeds, the status returned is one of the following values:
* The exit value specified in the ExitProcess or TerminateProcess function.
* The return value from the main or WinMain function of the process.
* The exception value for an unhandled exception that caused the process to terminate.
Alextp
Power Member
Posts: 2321 Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:
Post
by *Alextp » 2009-05-01, 09:21 UTC
2m^2 thanks, I'll see it.
Have you sample of calling it, after calling CreateProcess?
m^2
Power Member
Posts: 1413 Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:
Post
by *m^2 » 2009-05-04, 10:54 UTC