Need command to Select files and folders with a pattern?

English support forum

Moderators: Hacker, petermad, Stefan2, white

sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

they were off
TCmatch.exe
TCmatch64.exe

Thank you very much
it now works
User avatar
Dalai
Power Member
Power Member
Posts: 10033
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Horst.Epp wrote:Don't type the stars !
If you just type 2016 after the CTRL-S it will exactly showing your 2 wanted entries.
Not quite. It depends on the setting Operation > Quick Search > Exact name match > "Beginning (name must start with first typed character)", or in this case maybe even the settings of Quick Search extended; don't know if that has any since I don't use it.

2sexy69
Well, you could have mentioned that you use Quick Search extended. I'm repeating myself: Be as precise as possible!

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

Maybe someone wants to use it?
VBS script.

Code: Select all

Dim WshShell

Set WshShell = CreateObject("WScript.Shell")

rok=InputBox(vbnewline & vbnewline & space(30) & "Pozostaw filmy z tego roku",space(28) & "Nazwa filmu (####)",2016,,5000)

WshShell.SendKeys "^s"
WshShell.SendKeys rok
WshShell.SendKeys "{ESC}"

Set WshShell = Nothing

WScript.Quit
User avatar
petermad
Power Member
Power Member
Posts: 16136
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, that may be just a side-effect. And as I said: wrong command for the purpose.
It is even documented that cd can be used to set view filters:

Help:
Command
3. You can make a button to change directories, by specifying cd directory name as the command. You can even choose which files to show, e.g. using the command cd directory\*.txt
Or Indirectly documented:
History:
28.06.13 Fixed: "cd" command in button bar couldn't handle include/exclude wildcards for directories, e.g. "cd *.* | *.*\" or "cd c:\test\*.* | *.*\" (32/64)
I have a whole line of premade filters in my Extended Menus based on using cd, and this use of cd have been discussed on the forum several times (just impossible to search for "cd").

But sexy69 is right about that cd don't support filtering of folders - Ghisler has said that is to prevent not ending up with a totally empty file panel without the possibility of navigating.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply