cmd_exec
Execute Windows CMD commands on any drive with optional environment variables and working directory. Supports all standard Windows commands.
Instructions
Execute a command using Windows CMD (Command Prompt). Supports all drives and Windows commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Optional: Environment variables to set for the command (key-value pairs). Empty or null means no custom env vars. Example: {"NODE_ENV": "production", "MY_VAR": "value"} | |
| command | Yes | The CMD command to execute. Example: dir D:\ or ipconfig | |
| working_dir | No | Optional: Working directory for the command. Supports any drive (C:, D:, E:, etc.). Example: D:\Projects |