title: Run ocaml from command line
body: <p>How can I run ocaml from the command prompt in windows. 
  Whenever I try</p>
  
  <pre><code>ocaml puzzle.ml
  </code></pre>
  
  <p>I get the error</p>
  
  <pre><code>'ocaml' is not recognized as an internal or external command, operable program or batch file.
  </code></pre>
  
  <p>I used to be able to use just this line of code to compile and execute the program, but I recently had to do a system restore and have lost this functionality. </p>
  
  <p>The path variable in environment variables is</p>
  
  <pre><code>C:\OCaml\emacs-23.3\bin;
  C:\OCaml\bin;
  C:\ProgramData\Oracle\Java\javapath;
  %SystemRoot%\system32;%SystemRoot%;
  %SystemRoot%\System32\Wbem;
  %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
  C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;
  C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;
  C:\Ruby193\bin
  </code></pre>
  
  <p>I got it working. Just a reminder to anyone who has the same issue. After you edit your path variable or install something that does, make sure to restart your command prompt.</p>