User Command for hashing console programs
Moderators: white, Hacker, petermad, Stefan2
Re: User Command for hashing console programs
Like I said, here works with absolute paths only:
Command: c:\tc\utils\lst2mlt\lst2mlt.exe
Parameters: /X:"c:\tc\utils\DirHash\DirHash.exe" /L:"%L"
It works
Command: c:\tc\utils\lst2mlt\lst2mlt.exe
Parameters: /X:"c:\tc\utils\DirHash\DirHash.exe" /L:"%L"
It works
Re: User Command for hashing console programs
Yes of course that works, do you see the difference?
\lst2multi\ v \lst2mlt\
Edit: my bad, my path was lst2multi
Code: Select all
utils\lst2multi\lst2mlt.exe
c:\tc\utils\lst2mlt\lst2mlt.exe
Edit: my bad, my path was lst2multi
Last edited by hi5 on 2021-06-04, 21:46 UTC, edited 2 times in total.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: User Command for hashing console programs
My path to lst2mlt.exe is utils\lst2mlt\ NOT utils\lst2multi\
Re: User Command for hashing console programs
Are you sure you don't have a space before " utils\" because if the full path works just "utils\" will to. There must be a typo, can't help you further.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: User Command for hashing console programs
No as I've just tested it. What is in your start path? "c:\totalcmd\" in mine. If you copy this and paste it in your buttonbar to replace the one you have (do check paths as I've typed it here)
Code: Select all
TOTALCMD#BAR#DATA
utils\lst2mlt\lst2mlt.exe
/X:"utils\DirHash\DirHash.exe" /L:"%L"
c:\totalcmd\TOTALCMD.EXE,3
c:\totalcmd\
-1
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: User Command for hashing console programs
2Axis
When providing environment variables (with double percent signs) in the Parameters field, TC doesn't expand them, so it's the launched program's job to do so. Apparently, lst2mlt doesn't have such feature. Provide the parameters in the Command field instead and it should work.
Regards
Dalai
When providing environment variables (with double percent signs) in the Parameters field, TC doesn't expand them, so it's the launched program's job to do so. Apparently, lst2mlt doesn't have such feature. Provide the parameters in the Command field instead and it should work.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: User Command for hashing console programs
2Axis
Try this instead:
Command: "%commander_path%\utils\lst2mlt\lst2mlt.exe" /X:"%commander_path%\utils\DirHash\DirHash.exe"
Parameters: /L:"%L"
Try this instead:
Command: "%commander_path%\utils\lst2mlt\lst2mlt.exe" /X:"%commander_path%\utils\DirHash\DirHash.exe"
Parameters: /L:"%L"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: User Command for hashing console programs
It works! (I guess for the explanation given by Dalai)
I have to mark these tips&tricks and hang to the wall
Thanks a lot to everyone
Re: User Command for hashing console programs
AFIAK, TC doesn't support envars in parameters filed.
%C in parameters field passes the name of the file that is under the cursor.
So %COMMANDER_PATH% actually gets parsed as filename.extOMMANDER_PATH, supposing the cursor is on the filename.ext
%C in parameters field passes the name of the file that is under the cursor.
So %COMMANDER_PATH% actually gets parsed as filename.extOMMANDER_PATH, supposing the cursor is on the filename.ext
Re: User Command for hashing console programs
You simply have to double the % in this case
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Re: User Command for hashing console programs
Re: User Command for hashing console programs
2solid
See my explanation above: https://www.ghisler.ch/board/viewtopic.php?p=402502#p402502
Regards
Dalai
See my explanation above: https://www.ghisler.ch/board/viewtopic.php?p=402502#p402502
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: User Command for hashing console programs
The bottom line is that environmental variables are not supported in the parameters field. They are not expanding to their values.Dalai wrote: ↑2021-06-05, 15:50 UTC 2solid
See my explanation above: https://www.ghisler.ch/board/viewtopic.php?p=402502#p402502
Regards
Dalai
We agree on this, don't we?
But I don't agree that we should expect from external programs to expand TC's internal variables, even if the programs are written for TC itself.
Re: User Command for hashing console programs
For any external program which is started from TC there is no difference between TC internal variablessolid wrote: ↑2021-06-05, 15:59 UTCThe bottom line is that environmental variables are not supported in the parameters field. They are not expanding to their values.Dalai wrote: ↑2021-06-05, 15:50 UTC 2solid
See my explanation above: https://www.ghisler.ch/board/viewtopic.php?p=402502#p402502
Regards
Dalai
We agree on this, don't we?
But I don't agree that we should expect from external programs to expand TC's internal variables, even if the programs are written for TC itself.
and any other, they can all be expanded if the program does it at all.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64