title: How to close cmd after LabVIEW code executes
body: <p>When I am running batch file through LabVIEW by using System Exec.vi, two cmd windows are appearing. The second one executes command of the batch file and closes after that, while the first one doesn't close. I have tried to use <a href="https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7lUSAS" rel="nofollow noreferrer">this solution</a>, but it doesn't work. Is there any way to close that first cmd ?</p>
  
  <p><a href="https://i.stack.imgur.com/J9Efc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J9Efc.png" alt="LabVIEW code to run external .batch file"></a></p>
  
  <p><a href="https://i.stack.imgur.com/vUHeI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vUHeI.png" alt="cmd windows"></a></p>
  
  <p>P.S. If I run batch file not through LabVIEW, but just by double clicking on it, two cmd windows close after execution </p>