title: The system cannot find the file specified java
body: <p>Yes, I already know this question is a duplicate, but just bear with me here. None of the other questions answered this.</p>
  
  <p>This is my code:</p>
  
  <pre><code>package pc.setup;
  
  import java.io.IOException;
  
  public class DirectoryCreator {
      public static void setupDirectories() throws IOException {
          Runtime.getRuntime().exec("cd\\");
      }
  }
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <pre><code>Exception in thread "main" java.io.IOException: Cannot run program "cd\": CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessBuilder.start(Unknown Source)
      at java.lang.Runtime.exec(Unknown Source)
      at java.lang.Runtime.exec(Unknown Source)
      at java.lang.Runtime.exec(Unknown Source)
      at pc.setup.DirectoryCreator.setupDirectories(DirectoryCreator.java:7)
      at pc.load.PieClickerRunner.main(PieClickerRunner.java:9)
  Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.&lt;init&gt;(Unknown Source)
      at java.lang.ProcessImpl.start(Unknown Source)
      ... 6 more
  </code></pre>