Context menu/menu/toolbar icon to launch external program
Posted: Tue Aug 05, 2014 8:36 pm
Is there a way of configuring XnView to launch an external program with the parameters of the currently selected files/directories?
Let’s say I want to run a specific, specialized program on several pictures. I would like to be able to select one or more files (and directories), and select a function (either via the menu, toolbar or context menu) which would be then passed via it’s command line the names of the files/directories selected.
Example: let’s say I want to run the program “C:\program files\fooBar.exe” on the files “1.jpeg”, “2.jpeg”, “8.jpeg”. I select the three files then I click on the custom “Foo Bar” function, and XnView would execute the command line “C:\program files\fooBar.exe 1.jpeg 2.jpeg 8.jpeg”.
This could be a versatile and easy way to customize XnView without having to deal with the hassle of compiling a DLL… (You could conceivably even link a batch file / bash script)…
Let’s say I want to run a specific, specialized program on several pictures. I would like to be able to select one or more files (and directories), and select a function (either via the menu, toolbar or context menu) which would be then passed via it’s command line the names of the files/directories selected.
Example: let’s say I want to run the program “C:\program files\fooBar.exe” on the files “1.jpeg”, “2.jpeg”, “8.jpeg”. I select the three files then I click on the custom “Foo Bar” function, and XnView would execute the command line “C:\program files\fooBar.exe 1.jpeg 2.jpeg 8.jpeg”.
This could be a versatile and easy way to customize XnView without having to deal with the hassle of compiling a DLL… (You could conceivably even link a batch file / bash script)…