Visual studio code cmd error: Cannot be loaded because running scripts is disabled on this system

后端 未结 11 1495
北荒
北荒 2020-12-02 07:52

Inside of visual studio code, I\'m trying to execute a script.bat from the command line, but I\'m getting the following error:

File C:\\Theses_Repo\\t

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 08:44

    The simplest way to deal with this problem from Visual Studio Code is to change from powerShell to cmd (assuming there's no reason for using powershell in your case). To do so, follow these few steps:

    1. Terminal -> New Terminal
    2. In right lower corner select "Select Default Shell" option

    1. Select "Command prompt"

    I have not found such solution among current answers. Hope that helps!

提交回复
热议问题