[TC 9 All] cant launch the programs in Junction/Link Path

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, it is a general rule to quote paths that contain spaces because space is a delimiter between command line arguments.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm that the originally reported bug is fixed in TC9b9
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
thomasmo
Junior Member
Junior Member
Posts: 81
Joined: 2013-11-04, 01:31 UTC

Post by *thomasmo »

MVV wrote:Well, it is a general rule to quote paths that contain spaces because space is a delimiter between command line arguments.
but by the logic, I launch the program with Environment Variables %COMMANDER_PATH%, At all events, I am in any path, it will be directed to the right folder and run
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

In batch files you have to quote paths that may contain spaces too, even if you use envvars, because envvars are expanded before splitting the command line. This allows e.g. passing more than one argument via envvar.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, I'm not sure whether I should add quotation marks myself in this case...
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You shouldn't, it is out of the rule. Although it won't hurt anyone if you will add a special processing for %COMMANDER_* variables at the beginning of command line, but it shouldn't be done with any variable because other programs follow the rule.
Post Reply