I have a batch file which sets a variable using the following:
set "MyVariable=Test"
I have configured a task in tasks.json to run this batch file:
{
"version": "2.0.0",
"tasks": [{
"label": "VariableTest",
"command": "${workspaceFolder}/.vscode/VariableTest.bat",
"args": [],
"type": "shell"
}]
}
How can I retrieve the value of this variable from my launch.json file? "VariableTest" is setup as a preLaunchTask for the launch configurations, and parameters in this configuration depend on this variable.
I am of course running Windows (10).
Thanks!
"dependsOn": ["firstTask"]option