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

后端 未结 11 1518
北荒
北荒 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:26

    I have faced the same problem due to security reasons on Windows 10. I managed to fix it by running the following command in PowerShell:

    Set-ExecutionPolicy -ExecutionPolicy Unrestricted
    

提交回复
热议问题