AnyCmd - a lister plugin for command line programs/utilities
Moderators: Hacker, petermad, Stefan2, white
AnyCmd - a lister plugin for command line programs/utilities
Hi,
I'd like to announce availability of new lister plugin called "AnyCmd".
The plugin permits redirect standard output and error streams of any program to Total Commander lister view. Due to this, possible usage of the plugin is unlimited.
The full announcement is located at http://www.totalcmd.net/plugring/anycmd.html.
The project Web page and corresponding links, can be found at: http://anycmd.sourceforge.net/.
Please let me know your feedback and improvement suggestions.
Best regards,
Serge
I'd like to announce availability of new lister plugin called "AnyCmd".
The plugin permits redirect standard output and error streams of any program to Total Commander lister view. Due to this, possible usage of the plugin is unlimited.
The full announcement is located at http://www.totalcmd.net/plugring/anycmd.html.
The project Web page and corresponding links, can be found at: http://anycmd.sourceforge.net/.
Please let me know your feedback and improvement suggestions.
Best regards,
Serge
Last edited by Serge1 on 2013-02-04, 17:48 UTC, edited 1 time in total.
I use MultiLister WLX for such tasks. I guess AnyCmd is easier to apply as only text output is considered.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Hi Serge, thank you for this plugin. Is it possible to specify multiple command strings? This way doesn't work, unsurprisingly
The first DetectString masks out the second one and, consequently, the second Command string.
I would also like %COMMANDER_PATH% variable support. Thank you again.
Code: Select all
DetectString=FIND("version=123")
Command=E:\portable\totalcmd\conv\f1.exe -f E:\portable\totalcmd\conv\f1.lst %s
DetectString=EXT=TXT
Command=sort.exe %s
I would also like %COMMANDER_PATH% variable support. Thank you again.
Hi sgp,sgp wrote:The first DetectString masks out the second one and, consequently, the second Command string.
As far as I know, TC permits only single DetectString to Lister plugin association. The plugin is invoked only when its detection string complies. Thus, it is not possible to choose different command lines based on detect string.
Re: AnyCmd - a lister plugin for command line programs/utili
Hi All,
I'd like to announce availability of "AnyCmd" plugin version 1.1.
The full announcement is located at http://www.totalcmd.net/plugring/anycmd.html.
The project Web page and corresponding links, can be found at: http://anycmd.sourceforge.net/.
Please let me know your feedback and improvement suggestions.
Best regards,
Serge
I'd like to announce availability of "AnyCmd" plugin version 1.1.
The full announcement is located at http://www.totalcmd.net/plugring/anycmd.html.
The project Web page and corresponding links, can be found at: http://anycmd.sourceforge.net/.
Please let me know your feedback and improvement suggestions.
Best regards,
Serge
Serge1
Thanks.
Bug? - Plugin can't read files with spaces in names.
Suggestion. Show console text with Lister-colors (in my TC lister backgrownd black and text - white).
Suggestion. Open not only console, but any program in lister window (or in left/right panel). For example:
Thanks.
Bug? - Plugin can't read files with spaces in names.
Suggestion. Show console text with Lister-colors (in my TC lister backgrownd black and text - white).
Suggestion. Open not only console, but any program in lister window (or in left/right panel). For example:
Code: Select all
[ListerPlugins]
0=%COMMANDER_PATH%\PLUGINS\wlx\anycmd\anycmd.wlx
0_detect="MULTIMEDIA"
[AnyCmd]
DetectString=EXT=MP4
Command=%COMMANDER_PATH%\SOFT\Media Player Classic Home Cinema\mpc-hc.exe %s
Stream=3
Serge1, thank you very much for the update. I grabbed it and it works well for me. I'm using the FIND() detection method. Before anycmd I was using the multilister plugin, which can invoke different commands based on different file extensions - but its multiple detection doesn't mix well with FIND() detection.
I would like to announce availability of AnyCmd plugin version 1.2.
This release addresses users' feedback similar to:
I also would like to inform that I am in contact with the Author in relation to the second kind of the feedback:
Serge
This release addresses users' feedback similar to:
You may install several instances of the plugin in different (sub)directories now. This permits to define several detection string filters and associate corresponding commands in private init files.nick58 wrote:Great idea. But while there is no possibility to define different commands for different filters - this plugin is not so useful as it could be.
I also would like to inform that I am in contact with the Author in relation to the second kind of the feedback:
Best regards,nick58 wrote: Also, command output displayed in lister with non-standart font.
Serge
Hi LonerD,
works fine.
My assumption is that quotes should be added to separate file path from parameters in your example.
Just a tip - it is possible to 'debug' configuration by echoing the command line into the lister window itself. For example, the configuration above can be 'visualized' like this:
In addition, I am not aware about possibility to use top level window of an arbitrary application as a child window of another process.
Best regards,
Serge
I don't observe problems with file path containing spaces. For example, definition like this:LonerD wrote:Bug? - Plugin can't read files with spaces in names
Code: Select all
[AnyCmd]
command="c:\Program Files\Windows NT\Accessories\wordpad.exe" %s
DetectString=EXT=TXT
Stream=3
My assumption is that quotes should be added to separate file path from parameters in your example.
Just a tip - it is possible to 'debug' configuration by echoing the command line into the lister window itself. For example, the configuration above can be 'visualized' like this:
Code: Select all
[AnyCmd]
command=cmd.exe /c echo "c:\Program Files\Windows NT\Accessories\wordpad.exe" %s
DetectString=EXT=TXT
Stream=3
It is possible to open even GUI programs by this plugin. The usage of such scenario is questionable though - usually, GUI programs don't direct their output to stdout/stderr streams.LonerD wrote:Suggestion. Open not only console, but any program in lister window (or in left/right panel)
In addition, I am not aware about possibility to use top level window of an arbitrary application as a child window of another process.
Best regards,
Serge