title: Batch File - change directory to sub folder
body: <p>I am writing a bath file i need to move to the subdirectory i prompt user to enter a path that gets stored in</p>
  
  <pre><code> %DialogPath%
  </code></pre>
  
  <p>and i change the path to </p>
  
  <pre><code> CD /D %DialogPath%
  </code></pre>
  
  <p>Now i am check the folder with in this path i have a subfolder named </p>
  
  <pre><code>images 
  </code></pre>
  
  <p>i wantto go inside this</p>
  
  <p>I am doing </p>
  
  <pre><code>IF EXIST images
  CD %images%
  </code></pre>
  
  <p>But this does not seem to work the batch file gets automatically closed once it reaches the  CD %images% part.</p>