cd path\filename.ext

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

cd path\filename.ext

Post by *roentgen »

cd path\filename.ext

When executed from Button bar or Start menu that command is supposed to highlight the specified filename.ext. However, when executed for the first time inside the specific directory (so no directory changes are made) it doesn't work and it will not work anymore until TC restart.

It doesn't work at all from command line too. I know this is by design but isn't that half way implementation?
TC for Linux please!
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

This command also doesn't works for FS-plugins.
For example
cd \\\Registry\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir
has no effect at all, while command
cd \\\Registry\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
works fine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2roentgen
Strange, I will check that.

2VadiMGP
This new command is only supported for files in the file system.
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: cd path\filename.ext

Post by *ts4242 »

roentgen wrote:cd path\filename.ext

When executed from Button bar or Start menu that command is supposed to highlight the specified filename.ext. However, when executed for the first time inside the specific directory (so no directory changes are made) it doesn't work and it will not work anymore until TC restart.
confirmed
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed here too.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

this bug apply too for command line parameter L or R with O

try this
create 2 buttons with the following param
1.
cmd: totalcmd.exe
param: L=c:\windows\notepad.exe /O

2.
cmd: totalcmd.exe
param: L=c:\windows\sol.exe /O

if you pressed button 2 after button 1, sol.exe will not selected (it will work if you switch to another folder)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce and fix it now.
this bug apply too for command line parameter L or R with O
These do not currently support this feature. Maybe in a later release.
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

ghisler(Author) wrote: These do not currently support this feature. Maybe in a later release.
it is currently supported :wink:
if you run TC with L=c:\windows\notepad.exe /O, TC will start in windows dir and select notepad.exe, but the problem is that, if you run TC again (while it is running and still showing windows dir) with L refer to another file in windows dir, this file will not selected

i guess you are invoking the same function in both situation, so fixing cd path\filename.ext bug will auto fix L /O bug too!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, that addition wasn't planned! So let's see whether the other fix will fix this too...
Author of Total Commander
https://www.ghisler.com
anoda
Junior Member
Junior Member
Posts: 2
Joined: 2007-03-14, 21:36 UTC

Post by *anoda »

But original bug is still present - I try TC 7.0 beta 4.
CD c:\somedir\filename enters only in c:\somedir - but filename is not selected, moreover cursor stay on first line in directory c:\somedir.
Called from:
start menu
buttno bar
command line
anoda
Junior Member
Junior Member
Posts: 2
Joined: 2007-03-14, 21:36 UTC

Post by *anoda »

Confirmed original bug by roentgen
For the first time cd c:\somedir\filename place cursor on filename, but when I try command again, TC produce only
c:\somedir\
TC need be restarted.
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

2anoda
This function was introduced for the first time in TC7b4 so that's why the bug is "still present" :wink:
However, the author has confirmed the bug and hopefully it will be fixed.
TC for Linux please!
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

the author has confirmed the bug and hopefully it will be fixed
It is fixed in private beta 4.5 :-)
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Still fixed in TC7rc1 :-)
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply