[32/64] Can't define ext viewer if path has envvar and space

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

Moderators: Hacker, petermad, Stefan2, white

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

[32/64] Can't define ext viewer if path has envvar and space

Post by *MVV »

Steps:

1. Configuration, Edit/View, Associations...
2. Enter any new extension.
3a. Write any path with spaces to EXE (e.g. C:\Program Files\Internet Explorer\IEXPLORE.EXE).
3b. Write any path to EXE that start with %PROGRAMFILES% and doesn't contain spaces.
3c. Write any path to EXE that start with %PROGRAMFILES% and does contain spaces (e.g. %ProgramFiles%\Internet Explorer\IEXPLORE.EXE).
4. Click OK.

Results: for 3a and 3b you get success at step 4. But for step 3c you get 'Program not found!' error.

It is old bug, it exists in 7.56a too.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Try
"%ProgramFiles%\Internet Explorer\IEXPLORE.EXE"

Does that work? Otherwise TC expects that you want to call the program
"%ProgramFiles%\Internet" with paraemeter "Explorer\IEXPLORE.EXE".
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 »

Unfortunately this doesn't work too - I see same error message.

File exists, I've checked it by executing command cd "%ProgramFiles%\Internet Explorer\IEXPLORE.EXE" - TC focused file. :!:
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will check in the debugger what is going on.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in beta 3, please check!
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 »

Sorry for late reply, it is fixed, thanks! :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
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