Coder Social home page Coder Social logo

nils-soderman / vscode-batch-runner Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 4.0 404 KB

Visual Studio Code extension to run batch files in the terminal

Home Page: https://marketplace.visualstudio.com/items?itemName=NilsSoderman.batch-runner

License: MIT License

TypeScript 97.52% Batchfile 2.48%
batch bat vscode runner extension run execute visual-studio-code cmd vscode-extension

vscode-batch-runner's Introduction

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:

  • Command: "Batch Runner: Run with Arguments" (batch-runner.execBatchFileArgs)
  • In the context menu when right clicking a batch file, select "Run with Arguments"
  • By clicking the dropdown arrow next to the run button and selecting "Run with Arguments"
    Run with arguments button

Running batch file as administrator

Ways to run the batch file with administrator privileges:

  • Command: "Batch Runner: Run as Administrator" (batch-runner.execBatchFileAsAdmin)
  • Holding down Alt when right clicking a file in the explorer will provide you with the option to run the batch file as administrator.
  • By clicking the dropdown arrow next to the run button and selecting "Run as Administrator"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.