Search notes:

Registry: HKEY_CLASSES_ROOT\Directory\shell

Open cmd.exe here

The following simple batch file installs a shortcut (context) menu on directories that open cmd.exe with the current directory-path set to the directory on which the context menu was executed.
@rem
@rem   %L is replaced with the path of the directory
@rem
@rem   The % sign needs to be escaped in a batch script with another
@rem   % sign, thus %%L is used in the reg add command:
@rem
@reg add "HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open cmd.exe here\command" /t REG_SZ /ve /d "cmd.exe /k cd %%L" /f
Github repository about-Windows-Registry, path: /HKEY_CURRENT_USER/Software/Classes/Directory/shell/open-cmd.exe-here.bat
Compare with Opening any file with a specific application

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/...', 1759399814, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/registry/tree/HKEY_CLASSES_ROOT/Directory/shell/index(48): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78