Open no extension files with double-click?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ib
Junior Member
Junior Member
Posts: 21
Joined: 2008-04-25, 22:45 UTC

Open no extension files with double-click?

Post by *ib »

I have a Windows 11 set up so that a file with no extension opens in Notepad++. If I try the same in Total Commander, the popup "Select an app to open this . file" shows with the Just Once button (no Always button available). I know I can map Notepad++ to F3 or F4, but is it possible to also override Enter, but still keep it for folder navigation? I think Enter is mapped to cm_Return by default.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Open no extension files with double-click?

Post by *petermad »

2ib

Use this in the [Searches] section of your wincmd.ini file:

Code: Select all

File_no_ext_SearchFor=*.
File_no_ext_SearchIn=
File_no_ext_SearchText=
File_no_ext_SearchFlags=0|006002010021||||||||22220|0000|||
And then associate >File_no_ext in TC's internal association with notepad++.

The trick is to disable the Directory attribute from the search in the Advanced tab in the Find Files dialog.
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
ib
Junior Member
Junior Member
Posts: 21
Joined: 2008-04-25, 22:45 UTC

Re: Open no extension files with double-click?

Post by *ib »

And then associate >File_no_ext in TC's internal association with notepad++.
How do I do this part?
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Open no extension files with double-click?

Post by *petermad »

2ib
How do I do this part?
like this: https://tcmd.madsenworld.dk/associatefilenoext.png
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
ib
Junior Member
Junior Member
Posts: 21
Joined: 2008-04-25, 22:45 UTC

Re: Open no extension files with double-click?

Post by *ib »

Ok, thanks a lot for the hint. That didn't work for me -- editor tries to open "C:\FileWithNoExtension." with a trailing dot. This however did work:

1. Click Files -> Associate (Windows Overall)
2. Leave BLANK "All files with extension (ending with):".
3. Click New Type...
4. Browse and select an editor
5. Click OK
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Open no extension files with double-click?

Post by *petermad »

2ib
That didn't work for me -- editor tries to open "C:\FileWithNoExtension."
Well, it works fine here - are you sure you have "%1" at the end of the field "Open" in the "Edit file type" dialog.
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
ib
Junior Member
Junior Member
Posts: 21
Joined: 2008-04-25, 22:45 UTC

Re: Open no extension files with double-click?

Post by *ib »

If you are on Windows 10, might account for the difference. My original steps were...

1. Click Files -> Associate Internal -> Add
2. Specify file type -> >File_no_ext
3. Type name: >File_no_ext
Actions -> Open "C:\Program Files (x86)\Notepad++\notepad++.exe" "%1"
4. OK, OK
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Open no extension files with double-click?

Post by *petermad »

2ib
If you are on Windows 10, might account for the difference.
I just tested on Windows 10 - it still works fine here.

Could you please try this:
Open Find Files (Alt+F7), click on the Load/Save tab, find File_no_ext in the list and Load it.

Is the General and the Advanced tabs then filled out like this:
https://tcmd.madsenworld.dk/file_no_ext1.png
and this:
https://tcmd.madsenworld.dk/file_no_ext2.png
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
Post Reply