Internal Associations bug?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Internal Associations bug?

Post by *Boofo »

I'm not sure if this is a bug or not but I don't get the drop down for any of these extensions other than the CMD one. The rest run like normal, but with CMD is will give me a drop down menu like it should. Am I doing something wrong or is this a bug of some sort?

Code: Select all

Filter8=*.bat;*.cmd;*.inf;*.reg;*.vbs
Filter8_open=*
Filter8_Open with &EditPlus=""%PROGRAMFILES%\EditPlus 3\editplus.exe" "%2""
Filter8_Open with &Lister=""%COMMANDER_PATH%\TOTALCMD.EXE" /S=L "%1""
Filter8_Open with &Notepad2=""D:\Software\Notepad2\Notepad2.exe" "%1""
Filter8_Run (Sys)=%comspec% /c "%1"
Filter8_Run (TCC)=""%PROGRAMFILES%\JPSoft\TCMD10\tcc.exe" /c "%1""
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Boofo
No problems here.

I think this is related to:
http://www.ghisler.ch/board/viewtopic.php?t=23644

Shortly: you might have different filters defined for mentioned extensions already. In such case only the first rule will be handled. Internal Associations are not perfect yet ;)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

2fenix_productions,

I checked them all and the only one I had defined already was INF. I removed that one. The CMD file still gives me the drop down but the BAT file automatically runs when I click on it. It seems like the external association takes over for BAT files.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50843
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed exe, com, bat and lnk files are treated differently than other files: The default verb cannot be overridden via internal associations, and additional context menu items are shown only in the internal context menu (cm_contextmenuinternal). While the former is intentional so the user doesn't accidentally disable programs by defining a *.* internal association, the later is not intentional - it's probably a side effect of the former. Unfortunately there isn't enough time now to fix that before the release of TC 7.5, but I will try to find a solution for the next version.
Author of Total Commander
https://www.ghisler.com
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Thanks, Christian. ;)
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

ghisler(Author) wrote:Indeed exe, com, bat and lnk files are treated differently than other files...
Sorry, cmd is not included? I mean is not the same as bat?


Extension <<.bat>> was replaced with <<.cmd>> in NT version.

Explanation are here:
CMD.exe is the NT/XP equivalent of Command.com in previous operating systems. The older 16 bit command processor command.com is supplied to provide backward compatibility for 16 bit DOS applications. For example command.com will fail to set %errorlevel% after certain commands.

To ensure that a batch file will not run if accidentally copied to a Windows 95/98 machine you should use the extension .CMD rather than .BAT in NTFS systems.

The COMSPEC environment variable will show if you are running CMD.EXE or command.com .
My Best Wishes,

Eugen
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50843
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, cmd files are currently not treated separately, but I will consider it.
Author of Total Commander
https://www.ghisler.com
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

ghisler(Author) wrote:No, cmd files are currently not treated separately, but I will consider it.
Thanks!
My Best Wishes,

Eugen
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I like that CMD files work in the menu drop down.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

ghisler(Author) wrote:cmd files are currently not treated separately, but I will consider it.
Thanks - support.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply