I'm trying to make a list of all videos I play. To do that, I have a batch file that get the filename and add it to a TXT file. After that, it call the system default player to run that video.
Using an explorer tool, like Directory Opus, I can assign that batch file to File Types double-click action and it does the task.
But how to do the same using Everything?
I can assign a shortcut to this batch file, but I'd like to do that simply using ENTER key. So, how to override the default behavior of it to call the batch file and not the default player?
In other words, how to press ENTER on a video file, inside Everything grid, and it invoke the batch file and not the system default player instead?
It could be done via plugin feature?
I'm using Everything 1.5.0.1372a.
Below, the batch file:
Code: Select all
@echo off
mode con cp select=1252
dir %1 /b >> "D:\Programas\GomPlayer - Histórico.txt"
if "%~x1" == ".mkv" goto :MKV
if "%~x1" == ".mp4" goto :MP4
if "%~x1" == ".png" goto :PNG
if "%~x1" == ".docx" goto :DOCX
goto :FIM
:MKV
start "C:\Program Files (x86)\GRETECH\GOMPlayer\GOM.exe" %1
goto :FIM
:MP4
start "C:\Program Files (x86)\GRETECH\GOMPlayer\GOM.exe" %1
goto :FIM
:PNG
start "C:\Program Files (x86)\ACD Systems\ACDSee\ACDSee.exe" %1
goto :FIM
:DOCX
start "C:\Program Files (x86)\Microsoft Office\Office14\WINWORD.EXE" %1
goto :FIM
:FIM