cd command line error

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Stefan2, Hacker, petermad

Post Reply
cmingyan
Junior Member
Junior Member
Posts: 15
Joined: 2011-11-24, 08:19 UTC

cd command line error

Post by *cmingyan »

Example:
  • First open TC and switch to "C:\Program Files\dotnet\host\fxr" directionary.
  • If I input "cd 8.*" in the command line bar below TC, it can not go the 8.x.x directory and cause no file list in the target window. (path bar always filter with 8.*)
  • But if I open the System-Terminal (DOS command line mode), and type "cd 8.*", it can go the the 8.x.x directory without error.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53139
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cd command line error

Post by *ghisler(Author) »

cd 8.* will NOT go to 8.x.x directory. Instead, it will set a display filter for files name 8.*
This isn't a bug, it's a feature!
Author of Total Commander
https://www.ghisler.com
User avatar
Stefan2
Power Member
Power Member
Posts: 4395
Joined: 2007-09-13, 22:20 UTC
Location: Deutschland

Re: cd command line error

Post by *Stefan2 »

2cmingyan

To disable the 8.* -Filter see menu "Show > All Files"

Explanation:
The command "cd" in the command line bar below TC is not the DOS-command "cd" which works in the System-Terminal.

To jump to a folder in TC just be in the panel and type some signs, like "8".
Maybe take beforehand a look at menu "Configuration > Options... > Quick Search" and enable "(0) Letters - with search dialog"



Google "quick search" site:ghisler.ch

https://www.ghisler.ch/wiki/index.php/Quick_search
https://www.ghisler.ch/wikide/index.php?title=Schnellsuche
https://ghisler.ch/board/viewtopic.php?p=332810#p332810




 
User avatar
AntonyD
Power Member
Power Member
Posts: 2182
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: cd command line error

Post by *AntonyD »

Wait, something's not quite clear. Let's say that in the sys-terminal, the CD cmd has a special behavior.
For example, the command seems to be able to handle substitute characters like ".*" .
BUT! If I type the full command "cd 8.0.24" in the command line of Total and press Enter, then I will not filter,
but will go to the 8.0.24 folder. So where's the difference here from the behavior in the console?
#146217 personal license
User avatar
Stefan2
Power Member
Power Member
Posts: 4395
Joined: 2007-09-13, 22:20 UTC
Location: Deutschland

Re: cd command line error

Post by *Stefan2 »

AntonyD wrote: 2026-03-05, 09:51 UTC
The "CD" -command in TCs* console is Christians own implementation of the DOS "cd"-command.

And we talk about "*" which act as filter, not the full folder name. (try "cd 8.0.24*" instead and test with some files also)



 
User avatar
petermad
Power Member
Power Member
Posts: 17375
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cd command line error

Post by *petermad »

2AntonyD
So where's the difference here from the behavior in the console?
It has been like that in TC since v. 3.52 when there are wildcards on the argument.

17.06.98 Added: Button bar/Start menu command 'cd' now accepts wildcards, e.g. cd c:\windows\*.ini shows all ini files in c:\windows, without path in current dir
A lot of em_commands and buttons rely on this - it must not be changed.

Cd is so much more in TC than DOS's cd.

Basically cd with wildcards works the same way as setting a filter with Ctrl+F12

You can also use cd to filter with a saved search: cd >savedsearchname

see for example viewtopic.php?p=236904#p236904
License #524 1994
Danish TC Translator
TC 11.58 32+64bit on Windows XP 32bit & Windows 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1416b
TC 3.62 on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AntonyD
Power Member
Power Member
Posts: 2182
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: cd command line error

Post by *AntonyD »

I wasn't suggesting breaking or changing anything - I just couldn't find a REALLY big difference and so far you've only described one single difference:
if there are wildcards characters in the body of the CD command - then it is not a "ChangeDir"- but a filter for displaying these files in the panel.
Otherwise, it's just a jump command to a folder.
#146217 personal license
User avatar
petermad
Power Member
Power Member
Posts: 17375
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cd command line error

Post by *petermad »

Another differnce is that cd path\filename in TC puts the cursor on filename, but in DOS it says: the stated path was not found.
License #524 1994
Danish TC Translator
TC 11.58 32+64bit on Windows XP 32bit & Windows 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1416b
TC 3.62 on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53139
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cd command line error

Post by *ghisler(Author) »

Moderator message from: ghisler(Author) » 2026-03-10, 11:54 UTC

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply