Page 1 of 1

Execute user cmd and keep output window open

Posted: 29 Apr 2022 16:51
by Sander Bouwhuis
I would like to know how to execute a user command such that the output window remains open.

I use these settings in the Manage User-Defined Commands window:
Category = "Open with"
Action = Open selected List Item(s) with specified application.
Caption = Is Video HDR?
Application = "C:\Utilities\MediaPlayer\ffprobe.exe" -v quiet -show_streams -select_streams v:0 <selitems> | grep ^color_transfer=
Mode = Multiple instance (pass each of the items to its own instance of the application).

Unfortunately, the cmd window closes within milliseconds, so I cannot see the result. Which option do I need to toggle to keep the output window open?

Re: Execute user cmd and keep output window open

Posted: 29 Apr 2022 17:20
by highend
By running everything through a cmd /k call

but what you're trying there won't work anyway.

Mode = Multiple instance?

with <selitems>?

In other words: Sent all selected items to each instance that would be spawned.

Pointless.

Write a script that does it correctly and start it via Load Script File instead