Search notes:

Registry: HKEY_CLASSES_ROOT\*\shell

Opening any file with a specific application with a right click from Explorer

@reg add HKEY_CURRENT_USER\Software\Classes\*\shell\gvim         /f /t REG_SZ /ve /d "Edit with GVIM"
@reg add HKEY_CURRENT_USER\Software\Classes\*\shell\gvim\command /f /t REG_SZ /ve /d "\"P:\ath\to\\gvim.exe\" \"^%1\""
Github repository about-Windows-Registry, path: /HKEY_CURRENT_USER/Software/Classes/star/shell/open-with-gvim.bat
Note how the aposotrophes and the percent sign are escaped with the backslash and the caret (^).
Compare with Open cmd.exe here

See also

HKEY_CLASSES_ROOT\*

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759391199, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/registry/tree/HKEY_CLASSES_ROOT/star/shell/index(48): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78