nils-soderman / vscode-batch-runner

Visual Studio Code extension to run batch files in the terminal
https://marketplace.visualstudio.com/items?itemName=NilsSoderman.batch-runner
MIT License
5 stars 5 forks source link
bat batch cmd execute extension run runner visual-studio-code vscode vscode-extension

Batch Runner

Quickly run batch (.bat / .cmd) files in the VS Code terminal:


Batch runner demo


Executing a batch file

Shortcut

If the active document is a batch file, press F5 to execute it.

Context Menu

This extension adds the options to run a batch file when using right click in the explorer.

Context menu run batch file

Button

When a batch file is open in the editor, a small icon is added to the top right corner which can be used to run the file.

Run batch file button


Running batch file with arguments

VS Code can show a prompt where you can type in the arguments before executing the batch file.

Ways to run the batch file with arguments:


Running batch file as administrator

Ways to run the batch file with administrator privileges:


Feedback, Bugs or Requests

If you have any questions, feature requests or run into any bugs, don't hesitate to get in contact with me:

Report an issue
Personal Website