title: batch script to open an command window and run directory scan
body: <p>I'm trying to create a batch script which opens a</p>
  
  <p>1) command window</p>
  
  <p>2) get the command prompt pointing to c (come to root)</p>
  
  <p>3)run dir /s command which performs an extensive scan of the system starting from the root.</p>
  
  <p>The window should not dissapear.</p>
  
  <p>but i' m only able to come to come to c prompt and the command window disappears, i have posted the script here . Please let me know where exactly i'm going wrong .</p>
  
  <pre><code>start cmd /c cd / &amp;&amp; dir /s
  </code></pre>
  
  <p><strong>EDIT</strong> : The issue is fixed </p>
  
  <p><strong>ANSWER</strong></p>
  
  <pre><code> start cmd /c 
  cd / &amp;&amp; dir /s
  </code></pre>