How to aggregate all descript.ion file contents?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Wincomuser
Junior Member
Junior Member
Posts: 41
Joined: 2003-06-11, 14:50 UTC

How to aggregate all descript.ion file contents?

Post by *Wincomuser »

I would like to use the comments feature of TC to add keywords for my files and directories. I shall then use the keywords to search for particular files.

However, I would like to have a way to list all the keywords that I have entered in the comments field, which end up in the respective descript.ion files.

Is there a way to do this, or will I have to keep those keywords in a separate text file for reference?
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

1. Find all "descript.ion" files in desired path and below. They must be numerous in diffrerent directories;
2. Press "Feed to listbox";
3. Press * to select them all;
4. Run Multirename tool (Ctrl+M) and set, e.g., "a" as name, "[C]" as extension. You get a.1, a.2, etc files.
5. Put cursor on a.1 and choose Files\Combine Files;
6. After clicking OK twice you get "a" (no ext) file containing all input files' contents.

Please make backup copies of your descript.ion's before experimenting! (For example, TreeCopy would help).
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Vochomurka wrote:1. Find all "descript.ion" files in desired path and below. They must be numerous in diffrerent directories;
2. Press "Feed to listbox";
3. Press * to select them all;
....
4. Copy all to one single folder (e.g. d:\test). Select the option to automatic rename the copied files.
5. Use the command line or the DOS-window and type
"type *.ion > all_desc.txt"
Vochomurka wrote:....Please make backup copies of your descript.ion's before experimenting! (For example, TreeCopy would help).
Yepp.

Peter
TC 10.xx / #266191
Win 10 x64
Wincomuser
Junior Member
Junior Member
Posts: 41
Joined: 2003-06-11, 14:50 UTC

Post by *Wincomuser »

Thank you for the advice.

I had some problem copying the descript.ion files, but I made it in the end!

Sadly, the DOS command returns an empty file. :(

EDIT: It doesn't return an empty file if I change the attribute of the files to non-hidden!
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Wincomuser wrote:...EDIT: It doesn't return an empty file if I change the attribute of the files to non-hidden!
OK, that's clear. Now everything is fine?

Peter
TC 10.xx / #266191
Win 10 x64
Wincomuser
Junior Member
Junior Member
Posts: 41
Joined: 2003-06-11, 14:50 UTC

Post by *Wincomuser »

Yes, everything is fine now; thank you very much.
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

If you will make it frequently, you should use the combain utility for this purpose.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Problem is that descript.ion file doesn't contain full path to files, just names. If you combine all descript.ion files, you'll lost path infos. So, specifying full path to descript.ion before its contents in combined file is much needed. Another problem is that files may be changed or added new ones. So, you need refresh script or program that will scan your drives for descript.ion files and print its full path and contents into combined file.

BTW, simple CMD-file may be used for creating listing of all descript.ion files taken from filelist (filelist may be saved from search result for descript.ion files in TC using cm_SelectAll and cm_SaveSelectionToFile):

Code: Select all

@echo off
set source=descriptions.lst
set destination=descriptions.txt
echo Creating contents listing for %source%...
echo Contents of files in %source%:>%destination%
for /f %%i in (%source%) do (
echo.>>%destination%
echo [%%i]>>%destination%
type %%i>>%destination%
)
echo Done.
pause
cls
(you may set source to %1 and destination to %2 if you want to pass filelist and destination filename as params)
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Vochomurka wrote:If you will make it frequently, you should use the combain utility for this purpose.
Is there a german / english / french site?

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Peter wrote:
Vochomurka wrote:If you will make it frequently, you should use the combain utility for this purpose.
Is there a german / english / french site?

Peter
Here it is :wink:
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

ts4242 wrote:Here it is :wink:
:shock: :shock:

Locked by company-security-settings ..

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Peter wrote:
ts4242 wrote:Here it is :wink:
:shock: :shock:

Locked by company-security-settings ..

Peter
Home page of this tool here: http://tirna.narod.ru/main/main.htm (russian only)
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

1. Drag the combain.exe file to a button bar;
2. Select some files and drag them to the new button;
3. A dialog window is open. Everything is in English, except the title ;)
Single user license #329241
PowerPro scripts for Total Commander
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

2MVV, 2Vochomurka

Peter was asking for English version of this site not the program, I gave him a link for translating the site by Google but his company security blocks the translating script.
User avatar
Ambaquista
Junior Member
Junior Member
Posts: 60
Joined: 2005-05-27, 11:11 UTC
Location: Luanda, Angola

Post by *Ambaquista »

Or you can use a small program called TXTCollector
http://bluefive.pair.com/txtcollector.htm
TXTcollector grabs all .txt files (but you can select a specific extension, er. ION) from the directory of your choice and combines them into a new (larger) text file.
A bit later, but I just see this post...
Post Reply