FileListViewer

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

How to create a file-list with TC which has the same format as your "export-list"?

Peter
TC 10.xx / #266191
Win 10 x64
slartus
Junior Member
Junior Member
Posts: 35
Joined: 2008-09-09, 10:08 UTC

Post by *slartus »

for example: cm_CopyFpFileDetailsToClip
translated by Google
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

slartus wrote:... in the future the export plug-in formats (DiskDir, Catalog maker and others). ...
If I understand it right: Your program will export the data in a format that is used by CatalogMaker and/or Diskdir?

That would be appreciated very much.

Peter

BTW: When will be "in the future"?
TC 10.xx / #266191
Win 10 x64
slartus
Junior Member
Junior Member
Posts: 35
Joined: 2008-09-09, 10:08 UTC

Post by *slartus »

3.2.4
fixed: errors in parsing
added: Export list to a file format plug-DiskDir

My interest in the program appears in the emergence of user interest.
translated by Google
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

slartus wrote:3.2.4
fixed: errors in parsing
added: Export list to a file format plug-DiskDir
Thanks. I will check it next week after holidays.
Will you update the download at www.totalcmd.net?
slartus wrote:My interest in the program appears in the emergence of user interest.
8800 downloads are a strong argument for further development :!:


Peter
TC 10.xx / #266191
Win 10 x64
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Peter wrote:... I will check it next week after holidays....
Hello Slartus

due to bad weather I am in the office and tried the new "export to DiskDir-Format". Here are my remarks - I hope you have time to consider them:

- The first line of the export-file seem to be wrong. Opening with DiskDir I get an empty, nameless "folder".

- Codepage:
Please take a look at the codepage - the German "Umlaute" like "ä, ü, ö, ..." are not correct (maybe other letters in other languages too)

- Export file dialogue:
At the moment the "resize feature" makes no sense because the box for file name (with loooooong strings) stays unchanged, and the dropdown-list with short names increases its size.

- Select file for export:
It seem that the dialogue uses the "open file command" instead of the "save as command". I can not create a file which does not exist - I can only select an existing one (and change the name in the edit box - that's not comfortable).

- Export configuration:
There is a dialogue to configure the export file - please explain it to me, I don't understand the features.

- All values are 0:
Maybe due to wrong configuration all my exported values for size, date and time are 0 ..

Thanks for consideration and
Happy Coding!

Peter
Last edited by Peter on 2010-05-18, 11:48 UTC, edited 1 time in total.
TC 10.xx / #266191
Win 10 x64
slartus
Junior Member
Junior Member
Posts: 35
Joined: 2008-09-09, 10:08 UTC

Post by *slartus »

line format file created by the plugin DiskDir:
path to the file / folder [tab] size [tab] date [tab] time
so I need to know which columns in the loaded list containing the data. in the absence filled with zeros.

All comments received and will try to solve in the near future.
8800 downloads are a strong argument for further development

if no requests and bug reports, the program arranges all (or just delete)
translated by Google
slartus
Junior Member
Junior Member
Posts: 35
Joined: 2008-09-09, 10:08 UTC

Post by *slartus »

Will you update the download at www.totalcmd.net?
link to download the program always leads to the latest version of the program (no matter what version of the description)
translated by Google
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

slartus wrote:... (no matter what version of the description)
Please consider that many users watch the site via RSS-feed and looking at the version-number. And if there is no new RSS-report and no new version-number, nobody wants to download the file and open it and search if the version is new - or not.

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Would it be possible to change displayed output (via config)?
I.E.
1) Set a string/label for the Attr1 Attr2 Attr3 Headers.
2) Set how the values under them should be displayed.

i.e. Instead of:

Code: Select all

FileName                Attr1        Attr2          Attr3
JediEdit1018.rar    744117    2002.12.9   1:58.22
Something like:

Code: Select all

FileName               Size          Date          Time
JediEdit1018.rar    74.4 K      12/09/02    01:58
Which would be:

Code: Select all

[Configuration]
Attr1=Size
Attr2=Date
Attr3=Time
Attr1Format=33
Attr2Format=MM/DD/YY
Attr3Format=HH:MM


Attr1Format=
8 = dynamic
16 = bytes (no change)
32 = K
64 = M
128= G

Add 1 thru 7 to the number to determine how many decimal places to use.
I.E KB (K) format with 1 decimal place (Ten's)
---> Attr1Format=33
I.E. MB format with 2 decimal places (Hundred's)
---> Attr1Format=66
I.E dynamic format with 2 decimal places
---> Attr1Format=10
Current Attr2Format (4 digit year, 1+ month number, 1+ day number)
Attr2Format=YYYY.M.D
Example Attr2Format (2 digit month number (padded with 0's), 2 digit Day (padded), 2 digit year)
Attr2Format=MM/DD/YY
Attr3Format=HH:MM (padded zeroes) 24 HOUR Clock, no seconds.
Attr3Format=H:M.S (current format, no padding)
slartus
Junior Member
Junior Member
Posts: 35
Joined: 2008-09-09, 10:08 UTC

Post by *slartus »

2Balderstrom
but if you download a list of other format (Catalog Maker, Disk Dir Extended, etc.)? then these settings will be incorrect. Or are you looking specifically for the format DiskDir make such settings?
Please consider that many users watch the site via RSS-feed and looking at the version-number. And if there is no new RSS-report and no new version-number, nobody wants to download the file and open it and search if the version is new - or not.
ok, try to overcome my laziness:)
translated by Google
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Not sure about other filetypes, but the config file could have:
[DiskDir]
Attr1=Size
Attr2=Date
Attr3=Time
Attr1Input=#
Attr2Input=2.2.4 ; This is MaxNum.MaxNum.MaxNum
Attr3Input=2.2.2
Attr1Out=33
Attr2Out=MM/DD/YY
Attr3Out=HH:MM
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
slartus
Junior Member
Junior Member
Posts: 35
Joined: 2008-09-09, 10:08 UTC

Post by *slartus »

3.2.5
added: opportunity to ask additional configuration parsing (Formats.xml)
added: in export value added Encoding
fixed: error control interface exports

Code: Select all

<Formats>
  <DiskDir>
    <!-- The name of the plugin -->
    <attrs>
      <!--
      EVERYTHING! attributes required
      "Index" - the index attribute in the file. From zero without path
      "Caption" - the column header that appears in the program
      "Type" - type of attribute values. Possible values: "String", "Number", "DateTime"
      "Input" - the format in which to read the value from the file (not used for type "String" and "Number") 
      "Output" - the format on which to display the value in the program (not used for type "String") 
8 = dynamic 
16 = bytes (no change) 
32 = K 
64 = M 
128= G 

Add 1 thru 7 to the number to determine how many decimal places to use. 
IE KB (K) format with 1 decimal place (Ten's) 
> Attr1Format=33

IE MB format with 2 decimal places (Hundred's)
> Attr1Format=66

IE dynamic format with 2 decimal places
> Attr1Format=10
      -->
      <attr index="0" caption="Size" type="number" input="#" output="68"/>
        <attr index="1" caption="Date" type="date" input="yyyy.M.d" output="MM/dd/yyyy"/>
        <attr index="2" caption="Time" type="time" input="H:m.s" output="H:m:s"/>
      </attrs>
  </DiskDir>
</Formats>
translated by Google
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Parsing Error reading DIR-file

Post by *Peter »

DIRLIST
With command

Code: Select all

dir *.* /s /t:c /n /c /o:g > STATIONSNUMMER.dir
I create files like this:

Code: Select all

 Datenträger in Laufwerk D: ist Mein Datenträger
 Volumeseriennummer: xyxy-1234

 Verzeichnis von D:\Program Files\totalcmd

13.04.2010  12:39    <DIR>          .
13.04.2010  12:39    <DIR>          ..
20.12.2007  10:47    <DIR>          Util_ContentAlt_1-0
22.04.2008  09:59    <DIR>          TxQuickView
06.09.2006  11:14    <DIR>          TC_Shell
10.03.2010  21:08    <DIR>          Sonderprogramme
04.06.2008  13:02    <DIR>          Reserve_Plugins
18.06.2009  08:34    <DIR>          Plugins
15.12.2009  16:59    <DIR>          Plotprogramme
25.09.2009  11:21    <DIR>          OpenFileTC
13.11.2007  09:04    <DIR>          Menüerweiterung
25.03.2010  21:46    <DIR>          LANGUAGE
03.11.2009  10:51    <DIR>          Icons
10.03.2010  20:31    <DIR>          File
19.09.2006  08:39    <DIR>          util_wcxtweak_0-5-2
19.01.2010  16:34             5'759 Extras.bar
20.07.2007  12:29            75'908 Extras.br1
19.01.2010  16:34            80'519 Extras.br2
12.11.2003  15:47                27 dirlist.bat
24.09.2009  08:50             7'680 FRERES32.DLL
11.01.2010  21:27             1'170 fsplugin.ini
14.04.2010  16:26                46 ftplist.txt
14.04.2010  16:26               108 ftplist.txt.bak
21.09.2009  17:25           251'829 Handbuch750.pdf
24.09.2009  08:50           561'428 HISTORY.TXT
Open it with Filelistviewer creates a parsing error.

CATALOGMAKER
With Catalogmaker 3.1.7 I made a file and it can not be parsed if it has more then 16 lines.

Example - does not work (but works if you remove the last lines):

Code: Select all

File name                                                                                     Ext    Size              Date        Time      Attr
------------------------------------------------------------------------------------------    ----   ---------------   ----------  --------  ----
d:\abc\Titelblatt                                                                             doc             75,776   13.01.2009  17:19.00  -a--
d:\abc\NUMMER.dir2                                                                            bak              1,062   18.05.2010  15:26.21  -a--
d:\abc\NUMMER                                                                                 dir             17,631   18.05.2010  15:23.34  -a--
d:\abc\Müller öse                                                                             dir2             1,059   18.05.2010  15:26.44  -a--
d:\abc\xyz 8-1 Stand 2009-07-16                                                               doc            249,344   21.07.2009  15:52.17  -a--
d:\abc\xyz 2_1.docm                                                                           pdf            501,949   01.04.2010  17:14.48  ra--
d:\abc\xyz 2_1                                                                                docm           204,175   01.04.2010  16:38.08  ra--
d:\abc\xyz 1_1.docm                                                                           pdf            364,824   01.04.2010  17:14.40  ra--
d:\abc\xyz 1_1                                                                                docm            79,301   01.04.2010  16:37.46  ra--
d:\abc\abc 310_1.docm                                                                         pdf          1,227,020   01.04.2010  17:14.30  ra--
d:\abc\abc 310_1                                                                              docm           638,975   01.04.2010  16:40.12  ra--
d:\abc\abc 309_1                                                                              dot            919,552   18.03.2010  18:43.05  -a--
d:\abc\xyz 2_1.docm                                                                           pdf            501,949   01.04.2010  17:14.48  ra--
d:\abc\xyz 2_1                                                                                docm           204,175   01.04.2010  16:38.08  ra--
FILE SIZE AND DECIMAL
Which kind of decimal-separator to you use? Point "1.000" or "1'000" or "1,000"? See my example - I use ",".

EXPORT OPTIONS
I still don't understand the definitions of the columns ...

Peter
Last edited by Peter on 2010-05-18, 13:55 UTC, edited 2 times in total.
TC 10.xx / #266191
Win 10 x64
slartus
Junior Member
Junior Member
Posts: 35
Joined: 2008-09-09, 10:08 UTC

Post by *slartus »

2Peter
Unfortunately, so far supported only Russian and English languages for this team. try to do
translated by Google
Post Reply