List of files with the same extension

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Razkut
Junior Member
Junior Member
Posts: 2
Joined: 2019-08-20, 19:50 UTC

List of files with the same extension

Post by *Razkut »

I have a folder with several subfolders and various files in them. How in Total Commander in the main window on the right, display a list of files with only one extension, e.g. .xls files from all those locations. In addition, I would like them to be ordered from the latest created file. How to do it?
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: List of files with the same extension

Post by *tbeu »

  • define the filter: CTRL+F12, set *.xls as filter type
  • show files in branch view: CTRL+B
  • to reset filter use CTRL+F10
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Razkut
Junior Member
Junior Member
Posts: 2
Joined: 2019-08-20, 19:50 UTC

Re: List of files with the same extension

Post by *Razkut »

Thanks a lot. It works like a charm. Is there possible to create button for something like this?
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: List of files with the same extension

Post by *petermad »

2Razkut
Is there possible to create button for something like this
Yes but i takes two steps.

First you have to set the filter by putting this command in your usercmd.ini file (located where your wincmd.ini file is placed):

Code: Select all

[em_showXlsOnly]
cmd=cd ;"*.xls"
Then you can use the command in combination with commands for seting "Branch view" and sorting by date with this button:

Code: Select all

TOTALCMD#BAR#DATA
em_showXlsOnly,cm_DirBranch,cm_SrcByDateTime 1

%COMMANDER_EXE%,26
Show.xls files in Branch view, sorted after creation date


-1
To make the button:
1. Mark the green text above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".

EDIT:
Changed the usercmd.ini command here above.

------------------

If you want the button to work with any file extension use:

Code: Select all

[em_showSameExtensionOnly]
cmd=cd
param=%Z;"*.%E"
and button:

Code: Select all

TOTALCMD#BAR#DATA
em_showSameExtensionOnly,cm_DirBranch,cm_SrcByDateTime 1

wcmicons.dll,24
Show files with type under cursor in Branch view, sorted after creation date


-1
------------------

You can also use this button, which doesn't require a usercmd.ini command, but it is slower:

Code: Select all

TOTALCMD#BAR#DATA
cm_DirBranch,cm_SrcByDateTime 1,cm_SelectCurrentExtension,cm_ShowOnlySelected,cm_ClearAll

wcmicons.dll,13
Show files with type under cursor in Branch view, sorted after creation date


-1
when using this button, the file mask is not changed, thus it is not necessary to reset it with Ctrl+F10, when leaving Branch view
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Olfert
Junior Member
Junior Member
Posts: 61
Joined: 2006-05-17, 10:55 UTC

Re: List of files with the same extension

Post by *Olfert »

I perform this kind of tasks quite a lot - searching all files of a certain type from a lot of subfolders. And I think I have another and easier approach. As stated in help file: "When using one of the quick search options with search dialog, a button will be shown which causes Total Commander to filter out all files which do NOT match the filter."

So if I wanted to find and filter out all excel files in a nested folder structure I would simply press CTRL+B (Branch view), press and hold ALT and type ".xls" (the . is important), click the dialog button or press CTRL+S (if I hadn't done that on an earlier search as the stated is being remembered) and only excel files will be shown.

Only requirement is to have the Quick Search hotkey set for either "Ctrl+Alt+letters", "Alt+letters" or "Letters with search dialog".
Post Reply