title: IF EXIST two directories - do nothing
body: <p>I am playing around with the IF EXIST batch file command but ran into a scenario.
  What i am trying to do is</p>
  
  <p>IF EXIST C:\Windows\system32 call batchfile2</p>
  
  <p>IF EXIST C:\WINNT\system32 call batchfile3</p>
  
  <p>But there are scenarios where both directories exist on PCs if win2k was upgraded to XP instead of a fresh XP install. What i want it to do if it detects both directories is to "do nothing" since the first two options above already takes care of what I want to do. Can someone tell me how i can manipulate this?</p>
  
  <p>Besides the above, I believe I can also call subroutines within the same batch but how can I create a subroutine to end the script if it detects both "Windows\system32" and 
  "WINNT\system32"?</p>
  
  <p>IF EXISTS C:\Windows\system32 goto sub1 else goto sub2</p>
  
  <p>:sub1</p>
  
  <p>:sub2</p>
  
  <p>Many thanks in advance.</p>