Is there a way to count words in documents like File Explorer can?

English support forum

Moderators: white, Hacker, petermad, Stefan2

italianoleone
Junior Member
Junior Member
Posts: 12
Joined: 2015-07-06, 11:37 UTC

Is there a way to count words in documents like File Explorer can?

Post by *italianoleone »

The problem: I need to count the number of words in DOCX/DOC documents all the time. I have to open each document one by one in Word and do the word count. This is painful if you have to do this every day for multiple documents.

I can solve the problem by using File Explorer and turning on the "word count" column there. But I don't want to use File Explorer instead of TC just because of this reason. It would be great if TC could "borrow" or utilise somehow this File Explorer solution or some other solution.

Any suggestions?
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Is there a way to count words in documents like File Explorer can?

Post by *nsp »

You can use shelldetails content plugins and field "word count" // this can be localized to your windows language
--> install shell details .
Add a custom view or a custom column.

If you want a summary file, you can use TCBL to create csv or Excel or html ... (32bit only and usage of wdx)
You can Also export files details with columns to file (cm_SaveDetailsToFile) or to clipboard (cm_CopyFileDetailsToClip)...
italianoleone
Junior Member
Junior Member
Posts: 12
Joined: 2015-07-06, 11:37 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *italianoleone »

Thanks. I tried it. It works only for DOC and not DOCX documents?
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *tuska »

With Shelldetails Version 1.26 the word count for .docx documents can be displayed.

EDIT:
I used (German language...)

Code: Select all

[=shelldetails.Wortanzahl]
The following should be noted:
The plugin "Shell Details" reads the file properties.

An opened Word document shows the correct word count in the status line, e.g. 599 words
but in the file properties under "Details" in the "Word count" field you can see a wrong value(!), e.g. 738 words.


Tested with:
Microsoft® Word 2013 (15.0.5233.1000) MSO (15.0.5233.1000) 32-Bit - Part of Microsoft Office Professional 2013
Windows 10 Pro (x64) Version 1909 (OS build 18363.815) | TC 9.51 x64
Last edited by tuska on 2020-04-23, 16:23 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Is there a way to count words in documents like File Explorer can?

Post by *Horst.Epp »

italianoleone wrote: 2020-04-23, 15:45 UTC Thanks. I tried it. It works only for DOC and not DOCX documents?
Confirmed
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *tuska »

I have the following entries in
%COMMANDER_PATH%\Shelldetails.ini

Code: Select all

[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}15]
Caption=Wortanzahl
UseDefault=1
State=131810
Wortanzahl (German) <=> word count (English)
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *tuska »

italianoleone wrote: 2020-04-23, 15:45 UTC ... It works only for DOC and not DOCX documents?
Shelldetails Version 1.26
In Total Commander version 9.51 32 bit (2020-03-25) I get no field contents for "Word count", e.g. for .doc and .docx documents.
Total Commander version 9.51 64 bit (2020-03-25) works fine for me.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Is there a way to count words in documents like File Explorer can?

Post by *Horst.Epp »

TC 9.51 x86 and x64 no word count display for .docx but works for .doc

Windows Explorer is the same, only .doc show word count.
This may depend off what software is installed for .docx handling
in my case its Softmaker Free Office.

Shelldetails 1.26
Shelldetails.ini contains:
[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}15]
Caption=Wortanzahl
UseDefault=1
State=131810
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
italianoleone
Junior Member
Junior Member
Posts: 12
Joined: 2015-07-06, 11:37 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *italianoleone »

I get some weird numbers instead of word/page count for DOCX files while DOC files work fine.

BUT in File Explorer BOTH docx and doc files work fine. Here's screen shot of both TC and File Explorer.

I use TC 9.51 64-bit.
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *tuska »

2italianoleone
Just out of interest:
Maybe you could add what values you see in the status line in the opened *.docx documents
and which program do you use for Word documents?
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *Usher »

italianoleone wrote: 2020-04-24, 11:04 UTC I get some weird numbers instead of word/page count for DOCX files while DOC files work fine.
You will get proper count for docx if you subtract 140724603453440 or 0x7FFD00000000. I don't know why NOT exactly 0x800000000000 (=2^47).
Andrzej P. Wozniak
Polish subforum moderator
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *tuska »

2italianoleone

For *.docx documents you can use the plugin Office2007wdx_64 0.0.3.1.

Field:

Code: Select all

[=office2007.Words]
This field can be added to the existing custom columns view.
italianoleone
Junior Member
Junior Member
Posts: 12
Joined: 2015-07-06, 11:37 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *italianoleone »

tuska wrote: 2020-04-24, 11:11 UTC 2italianoleone
Just out of interest:
Maybe you could add what values you see in the status line in the opened *.docx documents
and which program do you use for Word documents?
I see normal word count in the bottom status bar. I use Libreoffice and Openoffice for Windows.
italianoleone
Junior Member
Junior Member
Posts: 12
Joined: 2015-07-06, 11:37 UTC

Re: Is there a way to count words in documents like File Explorer can?

Post by *italianoleone »

Usher wrote: 2020-04-24, 13:37 UTC You will get proper count for docx if you subtract 140724603453440 or 0x7FFD00000000. I don't know why NOT exactly 0x800000000000 (=2^47).
Sorry, I don't understand. Is the plugin not working correctly or is the fault on my side?
Post Reply