What's the difference between process and shell in vscode tasks.json
The shell commands can only run inside a shell such as DIR
for cmd
and if
for bash
. So when you want to run shell commands, you have to use "type": "shell"
setting to run it correctly. When you want to just run a program such as .bat
, .sh
or .exe
, then you can just use "type": "process"
setting.