title: C- Using exec() in windows
body: <p>I've seen many many results for unix systems. I am using cygwin so I am using <code>unistd.h</code> library. I am trying to run this command but It does not run. What could I be missing here?</p>
  
  <p><code>execl("C:\\WINDOWS\\SYSTEM32\\CMD.EXE", "/c echo foo&gt;C:\\Users\\Sarp\\Desktop\\foo.txt");</code></p>