Run File Command
Run File Command
Execute script files directly from VS Code context menu
Features
Run File Command is a Visual Studio Code extension that allows you to execute different types of script files directly from the explorer context menu.
- Run script files with a single click
- Option to run scripts with administrator privileges
- Support for multiple file types and operating systems
- Simple and intuitive context menu integration
Supported File Types
Windows
.bat & .cmd - Batch files
.ps1 - PowerShell scripts
.exe - Executable files
.py - Python scripts
.js - JavaScript files
Linux/macOS
.sh - Shell scripts
.py - Python scripts
.js - JavaScript files
- Executable files without extension
Screenshots

Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Run File Command"
- Click Install
- Reload VS Code when prompted
Alternatively, you can download the .vsix file and install it manually through the "Install from VSIX..." command in VS Code.
Usage
- Right-click on any supported file in the Explorer view
- Select one of these options from the context menu:
- "Run this file command" - Execute the file normally
- "Run as administrator" - Execute the file with elevated privileges
Requirements
- Visual Studio Code 1.70.0 or newer
Extension Settings
This extension doesn't add any configurable settings yet.
Known Issues
- On macOS, administrator privileges might require additional permission dialogs
License
This extension is licensed under the included license.
Made by ntkhang03
If you find this extension useful, consider starring the repository!
| |