How to run a .bat from inside the IDE

前端 未结 5 1204
囚心锁ツ
囚心锁ツ 2020-12-07 09:40

What I want to do is very simple, yet can\'t find the way to do it.
In my projects I have several .bat files (I know, I\'m old) the perform some tasks like running SqlMe

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 10:08

    Merely a suggestion: This is a scenario which can be done with the VsCommandBuddy extension. The following configuration is an example:

    {
        "cmdname": "mk",
        "title": "Run MK.BAT",
        "description": "Run the MK bat file.",
        "cwd": "$(SolutionDir)",
        "filename": "cmd.exe",
        "arguments": "/C mk.bat",
        "async": false
    }
    

    You can assign shortkeys as well, so you can invoke your batch files with shortcut keys. Output comes in your output pane.

提交回复
热议问题