title: Execute batch file. How to call .bat file, visual studio command prompt and change directory in opened command prompt window
body: <pre><code>@echo off
  echo copy masterDB file from one directory to another one
  copy "C:\dir\dbfile"  "C:\dir1\dbfile" 
  cd c:\lvsdir
  call lvsrun.bat
  timeout /t 180
  start %comspec% /k ""C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86 
  cd C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
  MSTest /testcontainer: C:\testdir\test.dll
  </code></pre>
  
  <p>I want to do via a batch file to copy a db file from one directory to another one(which executes correct), then should start lvsrun.bat file, which should start lvs server,
  and then to open visual studio command prompt in a new window, change directory in opened command prompt to test directory and run test file. Problem occurs when i call lvsrun.bat, and it stucks there. New vs command prompt can't be opened. And having problem with changing directory in opened vs command prompt and run test file. Code above doesn't really work</p>