title: Windows .bat Scripting: Open VSCODE and run npm start within the terminal
body: <p>i want to create a Windows shell script that opens vscode in a given directory and executes 'npm start' <strong>within</strong> vs code. Is that possible? I am facing some problems, hopefully you can help me.</p>
  <p><strong>My Script</strong></p>
  <hr />
  <pre><code>@echo off
  set codePath=C:\Users\repo\source\
  set currrentWorkingDirectory=%cd%
  set VSCODE=&quot;C:\Program Files\Microsoft VS Code\code.exe&quot;
  
  
  
  call:start_service_ui
  
  GOTO :EOF
  :start_service_ui
  echo start service UI ...
  set service_ui_path=%codePat%project1\service-ui
  
  
  call %VSCODE% %service_ui_path%
  
  npm start
  ENDLOCAL
  GOTO:EOF
  </code></pre>
  <p><strong>1. Problem</strong></p>
  <hr />
  <p>When I call <em>%VSCODE% %service_ui_path%</em>, VSCode is opening but i can see the log information there, so the terminal is blocked by the VSCode operations - how can I stop that?
  The same counts for <em>npm start</em></p>
  <p><strong>2. Problem</strong></p>
  <hr />
  <p>I want to call the <em>npm start</em> command within VSCode, but I want to determine this in the .bat file.
  Is there any possiblity to do so? I coulnd´t find anything online about that.</p>
  <p>Many thanks in advance.</p>