Currently, if you want to execute multiple custom commands, you can only define [em_cmd1], [em_cmd2], [em_cmd3] first, and finally combine them
[em_final]
cmd=em_cmd1,em_cmd2,em_cmd3
The writing method is complicated, and parameters cannot be passed between the three commands.
Can such a function be implemented?
[em_final]
cmd1=A.exe
param1=A application parameters %P%O.txt
cmd2=B.exe
param2=B’s parameters %P%O.zip
cmd3=C.exe
param3=C parameter %P%S
Three commands are executed in sequence
Function to execute multiple commands
Moderators: Hacker, petermad, Stefan2, white
Function to execute multiple commands
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Function to execute multiple commands
How would this presented to the user to edit it?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Function to execute multiple commands
@ghisler in case you missed it viewtopic.php?p=437179#p437179 (the mockup is not very good but hopefully you get the gist of it)
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: Function to execute multiple commands
If it is a cm command, one per line
If it is an em command, it consists of a set of commands and parameters.
for example:
[em_cmds]
cm_SrcUnsorted
cm_SrcNegOrder
cm_SrcByDateTime
cm_GoToFirstFile
cmd=cm_Copy
param=O4H1G
cmd=%COMMANDER_PATH%\Scripts\name.ahk
param=%P%N
cmd=%COMMANDER_PATH%\Tools\name.exe
param=%P%N %T
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1