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
Open VS code
File -> Prefrences -> settings
in the Search bar -> Search for "terminal.integrated.shellArgs"
Click on the "Edit in setting.json" for Terminal>integrated>ShellArgs > windows [whatever you OS, select the respective settings]
At the top of the json file add this :
terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"]
For example after adding your json might look like:
{ "terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"], "git.autofetch": true, "peacock.favoriteColors": [ { "name": "Angular Red", "value": "#b52e31" }, { "name": "Auth0 Orange", "value": "#eb5424" },