[11.03] Folder(name) + [Shift+Enter] = problem...

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

[11.03] Folder(name) + [Shift+Enter] = problem...

Post by *MaxX »

What to do:

1. Just place any CLI prorgam into folder without spaces WITH "(" and ")", e.g.: D:\WorkDir\TC_WCX_AudioConverter_0992a_Orig(OLD)\faac.exe
2. Then try Shift+Enter on it.
3. Get an error, that "D:\WorkDir\TC_WCX_AudioConverter_0992a_Orig" is not a valid executable...

I still can launch "faac.exe" via regular Enter or type "cmd" to command line and launch my exe from there.

If i add a space or "&" to the folder's name, it helps and I can launch my "faac.exe" via Shift+Enter.

W10 x64, both TC 11.03 32 and 64 bits.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [11.03] Folder(name) + [Shift+Enter] = problem...

Post by *white »

Confirmed.

You can also try it with a batch file containing "@echo test" instead of faac.exe.
The same problem occurs when the folder name contains a ^ character and no spaces or &.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.03] Folder(name) + [Shift+Enter] = problem...

Post by *ghisler(Author) »

TC adds double quotes when the name contains certain characters like spaces or &. I'm not aware of any problems with braces in names. Is this really a problem? Why?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [11.03] Folder(name) + [Shift+Enter] = problem...

Post by *white »

ghisler(Author) wrote: 2024-03-19, 08:12 UTC I'm not aware of any problems with braces in names. Is this really a problem? Why?
Why is it not a problem?
  1. Create a batch file test.cmd with the command: @echo test
  2. Put test.cmd in a folder named "(test)" or "test^1"
  3. Pressing Enter on test.cmd works OK
  4. Pressing Shift+Enter does not work OK. (It does work if you add a space to the folder name or filename)
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [11.03] Folder(name) + [Shift+Enter] = problem...

Post by *MaxX »

That is definitely a problem. I can't use my CLI prorgam from there.
The easiest solution is just using double quotes for ANY path names. That can fix any problem. No need to find all problematic characters individually.

P.S.
I also remember my old Win XP with "D&S" folder (renamed from "Documents and Settings" to avoid spaces in the paths) and the same problems there. Unfortunately, I didn't know, that the problem was in TC.
This bug really looks the same now.
Ukrainian Total Commander Translator. Feedback and discuss.
Post Reply