Wrong program launched from CD bug: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 22: Line 22:
No matter which of those three is double clicked, "My Program.Exe" will always be launched instead.
No matter which of those three is double clicked, "My Program.Exe" will always be launched instead.


'''Reason:'''
Delphi function "WinExec" needs to be called with a preceeding and succeeding '''\"''' in order to work correctly with long filenames that contain spaces.


'''Workarounds:'''
'''Workarounds:'''

Revision as of 19:37, 6 January 2007

Will be fixed with the release of Total Commander 7 Beta 3


The following preconditions must be met:

  • Multiple programs (.exe files) with the same beginning of the Filename in the same folder
  • Filename is longer than 8.3 characters
  • The programs are located on a CD


Bug description:

Double clicking or pressing enter on a program with similar beginning of the filename results in launching the program with the shortest similar name.


Example:

  • My Program.Exe
  • My Program - Plugins.Exe
  • My Program - Languages.Exe

No matter which of those three is double clicked, "My Program.Exe" will always be launched instead.

Reason:

Delphi function "WinExec" needs to be called with a preceeding and succeeding \" in order to work correctly with long filenames that contain spaces.

Workarounds:

  • Shift+Enter / Shift+double click on filename (actually meant for starting a command line application without closing the output window)
  • Ctrl+Enter, Enter / Ctrl+Shift+Enter, Enter on filename for copying filename to TC's command line and launching it.