title: Windows batch file If/Else Start syntax?
body: <p>I need to make a Windows batch file that will:</p>
  
  <ul>
  <li><p>1.- Check a directory name and "If" it exists,
     a.- Run a specified *.exe from a different directory.</p></li>
  <li><p>2.- Or "Else"
     a.- Rename a directory and also
     b.- Rename another directory - then
     c.- Run a *.exe from the created directory.</p></li>
  </ul>
  
  <p>Question is: I'm stuck on the correct syntax ( I suppose) on creating this batch file. This is what I have, (maybe a nested if/Else would be better?) someone please enlighten me... Thanks.</p>
  
  <pre><code>@echo off
  IF EXIST "C:\Test\Dir1" (
  START "C:\Test\Dir\Test.exe"
  ) ELSE ( ren "C:\Test\Dir" "C:\Test\Dir1"
           ren "C:\Test\Dir2" "C:\Test\Dir"
           START "C:\Test\Dir\Test.exe"
  )
  </code></pre>