title: How to minimize the Command prompt condition based when it is executing the bat file?
body: <p>I know how to start bat file with minimized window using other bat file. </p>
  
  <p>Example: </p>
  
  <pre><code>first.bat 
  start /min second.bat
  
  second.bat
  @echo i'm minimized
  </code></pre>
  
  <p>But in my code base, run only one bat with minimized window. i'm using       </p>
  
  <pre><code> start /min cmd /C "%~dpnx0"
  </code></pre>
  
  <p>this one, but it starts again my bat file. Please help me.Thanks in advance</p>