A Delphi IDE extension that adds a context menu option "Open CMD here" to the Project Manager, allowing you to quickly open a command prompt in the folder of the selected project, file, or directory.
- Context Menu Integration: Adds "Open CMD here" option to Project Manager context menu
- Multi-Selection Support: Works with multiple selected items
- Smart Folder Detection: Automatically determines the appropriate folder based on the selected item:
- For files: Opens CMD in the file's directory
- For projects: Opens CMD in the project's directory
- For directories: Opens CMD in the selected directory
- For project groups: Opens CMD in the project group's directory
- Open the Delphi IDE
- Go to Component → Install Packages...
- Click Add... and browse to the compiled package file (
.bpl) - Click OK to install the package
Alternatively, you can compile and install from source:
- Open
CmdHereProjectManager.dpkin Delphi - Right-click the project and select Compile
- Right-click the project and select Install
- Right-click on any item in the Project Manager (file, project, directory, etc.)
- Select "Open CMD here" from the context menu
- A command prompt will open in the appropriate directory
- CmdHereProjectManager.dpk: Delphi package file
- CmdHereWizard.pas: Main implementation unit
rtl- Runtime Libraryvcl- Visual Component Librarydesignide- Design-time IDE interfaces (contains ToolsAPI)
- TCmdHerePMCreator: Implements
IOTAProjectMenuItemCreatorNotifierto add menu items - TCmdHereLocalMenu: Implements the context menu functionality
- OpenCmdHere: Core function that launches the command prompt
- ResolveClickedFolder: Smart folder resolution based on selection context
The extension uses Delphi's ToolsAPI to integrate with the IDE:
// Main interfaces implemented
IOTAProjectMenuItemCreatorNotifier // Menu creation
IOTALocalMenu // Menu properties
IOTAProjectManagerMenu // Menu executionThe extension intelligently handles different Project Manager contexts:
- FileContainer: Files in the project
- ProjectContainer: Project nodes
- ProjectGroupContainer: Project group nodes
- DirectoryContainer: Directory nodes
- Delphi IDE (tested with modern versions)
- Windows operating system
- Design-time package installation capability
This project is provided as-is for educational and development purposes.
Feel free to submit issues, feature requests, or pull requests to improve this extension.
- Initial Version: Basic "Open CMD here" functionality with multi-selection support