
Autodetect binary files?
Moderators: Hacker, petermad, Stefan2, white
Autodetect binary files?
I want to quick view a binary file with ctrl+q, but it's always displayed in text mode. I need to manually select hex mode all the time. How does TotalCmd distinguish text files and binary files? Is there a way to change this behavior to make it right? 

By default TC shows binary files in Binary mode (mode 2), and not in Text mode (mode 1)
You can make a button with this code:
This will start Lister i Hex mode (mode 3) with the current file.
You can make a button with this code:
Code: Select all
cmd=%COMMANDER_EXE% /S=L:T3
param=%Z%P%N
menu=Lister - Hex
button=%COMMANDER_EXE%,24
Last edited by petermad on 2013-03-07, 20:59 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- sqa_wizard
- Power Member
- Posts: 3896
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
@petermad: Thanks for the code, this can be used for a custom command.
The following code can be pasted directly to buttonbar
The following code can be pasted directly to buttonbar
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_EXE% /S=L:T3
%Z%P%N
%COMMANDER_EXE%,24
Lister - Hex
-1
#5767 Personal license