Internal Associations, 8.3 names

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Internal Associations, 8.3 names

Post by *DrShark »

The latest build of Opera browser can open cyrillic-named files only via 8.3 name. Until it will be fixed by Opera devs, I have to use a button on TC's button bar which passes 8.3 name to Opera.exe or toggles cm_SwitchLongNames. But it's not the best solution - I need to open such files by pressing Enter.

Question:
Is there a way to associate program in Windows or TC 7.5 to open files by 8.3 name?

If not, suggestion to TC Internal associaton system:
in addition to "%1" some new parameter which passes 8.3 name.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Postkutscher
Power Member
Power Member
Posts: 556
Joined: 2006-04-01, 00:11 UTC

Post by *Postkutscher »

I suggest you don`t use "" . This may help. Not tested thouth.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

I already use quotes ("%1"), it doesn't help.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Postkutscher
Power Member
Power Member
Posts: 556
Joined: 2006-04-01, 00:11 UTC

Post by *Postkutscher »

May be it was a translation problem. Sorry then. Я предложил НЕ использовать кавычки. Although, I have tested myself. It doesn`t helps. :(
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48138
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe %p%n instead of %P%N works? It should pass the short dos name to Opera.
I already use quotes ("%1"), it doesn't help.
He said that you should NOT use "", just %1 alone...
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Maybe %p%n instead of %P%N works?
How can I use TC's params (like %p%n or %P%N) in Internal Associations?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48138
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, this was meant for a button, or a hotkey (via em_* user-defined command). These cannot be used yet in internal associations.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Sorry, this was meant for a button, or a hotkey (via em_* user-defined command). These cannot be used yet in internal associations.
Sad. Please add this to your wish-list.
I have a button, but I need association.

So the only way for now is to write a program or script to convert "%1" into short name and pass it to desired app...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Just noted:
if to press Ctrl+Enter (and cm_SwitchLongNames is off) or drag file to command line, it displays a 8.3 name, but after pressing Enter, associated app using long name to open a file. It's a bug or feature?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Define your internal association to:
OperaOpen83.cmd "%1"
Create a file, OperaOpen83.cmd in system32 (or within %PATH%)

Code: Select all

@ECHO OFF
CLS
START "" "C:\Program Files\Opera\Opera.exe" "%~s1"
If you want a generic 8.3 file opener, then define your internal association:
Open83.cmd "%ProgramFiles%\Opera\Opera.exe" "%1"
Create a file, Open83.cmd in system32

Code: Select all

@ECHO OFF
CLS
START "" "%~1" "%~s2"
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Balderstrom
Thanks very much for your batch scripts, they are works here!
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

DrShark, my Opera also sometimes don't opens files with Russian names. But I found a reason. Try to play with "Encode international Web adresses with UTF-8" checkbox in Network settings on Advanced tab in Preferences dialog (set this checkbox on).
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

I know that opera:config#Network|UTF8EscapeURLs tweak helps, but I need to have it disabled, so 8.3 names currently is the only solution for me.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Post by *kesdoputr »

Can i chane to
Open83.cmd "%2"
and Open83.cmd's content is

Code: Select all

@ECHO OFF
CLS
START "" "%COMMANDER_PATH%\TOOLS\Mplayer\mplayer.exe" "%~s1"
Then i select 3 files and use the command above,but i find that mplayer can only play the first file i select.When i change to
Open83.cmd "%1"
I will get three mplayer running at the same time,is there a parameter can send 8.3 path/names by sequence?

Thx for your reply :lol:
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

kesdoputr wrote:Can i chane to
Open83.cmd "%2"
Try
Open83.cmd %2
without quotes.

This
START "" "%COMMANDER_PATH%\TOOLS\Mplayer\mplayer.exe" "%~s1"
should be changed to
START "" "%COMMANDER_PATH%\TOOLS\Mplayer\mplayer.exe" %*
Regards
Holger
Post Reply