Export selection then launch...
-
meteorquake
- Posts: 627
- Joined: Thu Dec 15, 2016 9:44 pm
Export selection then launch...
I bet I've asked ages ago but can someone remind me how to assign a key that exports the entire selection (and/or whole results list) to a file then launches a program with that file as a parameter...!
Re: Export selection then launch...
If the files are selected then either call said program directly (assuming it simply accepts the list of file names as parameters to the program) or call a batch file that then calls said program.
Two pairs of settings you'll want.
(for the hotkey part)
Tools | Options | Keyboard -> File | Custom Open
(& assign the hotkey you want for the associated custom_open_command)
&
(for the command part)
Options | Advanced | custom_open_command##
custom_open_command01=$exec("C:\WLIB\PLAYERS\mpv.net\mpvnet.exe" %*) + Alt+M
custom_open_command02=$exec("C:\BIN\XXhash64.BAT" %*)
custom_open_command03=$exec("C:\BIN\MI_COMPARE.BAT" %*) + Alt+I
custom_open_command04=$exec("C:\BIN\HEX.exe" %*) + Alt+H
custom_open_command05=$exec(C:\BIN\win32pad.exe K:\xfeRRRRRRR\DONE\DONEX\delme.from.K\new.txt")
custom_open_command06=$exec("C:\BIN\chk.4.EVERYTHING.exe" %*) + Alt+X
custom_open_command04=$exec("C:\BIN\I_View-THUMBS.bat" %*)
custom_open_command03=$exec("C:\DEV\WinMerge\WinMergeU.exe" %*)
MEDIAINFO_COMPARE.BAT
I_View-THUMBS.bat:
Two pairs of settings you'll want.
(for the hotkey part)
Tools | Options | Keyboard -> File | Custom Open
(& assign the hotkey you want for the associated custom_open_command)
&
(for the command part)
Options | Advanced | custom_open_command##
custom_open_command01=$exec("C:\WLIB\PLAYERS\mpv.net\mpvnet.exe" %*) + Alt+M
custom_open_command02=$exec("C:\BIN\XXhash64.BAT" %*)
custom_open_command03=$exec("C:\BIN\MI_COMPARE.BAT" %*) + Alt+I
custom_open_command04=$exec("C:\BIN\HEX.exe" %*) + Alt+H
custom_open_command05=$exec(C:\BIN\win32pad.exe K:\xfeRRRRRRR\DONE\DONEX\delme.from.K\new.txt")
custom_open_command06=$exec("C:\BIN\chk.4.EVERYTHING.exe" %*) + Alt+X
custom_open_command04=$exec("C:\BIN\I_View-THUMBS.bat" %*)
custom_open_command03=$exec("C:\DEV\WinMerge\WinMergeU.exe" %*)
MEDIAINFO_COMPARE.BAT
I_View-THUMBS.bat:
Code: Select all
:: /thumbs must come AFTER the file names !!!
if [%1]==[] goto allfiles:
:: SendTo, drag&drop ...
i_view32.exe %* /thumbs
goto end:
:load_a_filelist
dir /b * > irfanview_file_list.TXT
i_view32.exe /filelist=irfanview_file_list.TXT /thumbs
goto end:
:allfiles (current directory)
:: . = .., .\ = . (don't ask me why?)
:: i_view32.exe .\ /filepattern=* /thumbs
i_view32.exe .\ /thumbs
goto end:
:end
Re: Export selection then launch...
One way to do this in Everything is with a bookmark:
Set the bookmark search to:
/export -txt <filename> requires Everything 1.5.0.1401a or later.
/export -txt <filename> requires enabling all search commands.
/run requires enabling all search commands.
/export
/run
Set the bookmark search to:
Code: Select all
/export -selection-only -txt c:\myprog\myfilelist.txt
/run "c:\myprog\myprog.exe" -filelist "c:\myprog\myfilelist.txt"
/export -txt <filename> requires enabling all search commands.
/run requires enabling all search commands.
/export
/run