title: Hide console in C system() function, Win
body: <p>I am coding a C program in Dev-C++, and I need to use a couple of Windows (CMD) commands. It is easy, but when the command in the system() function is executed, the program runs the console in the execution.</p>
  
  <p>An example:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;windows.h&gt;
  
      int main()
      {
        system("if not exist c:\my_docs\doc.txt (xcopy /Y doc.txt c:\my_docs\)"); // Cmd command
        system("pause");
        return 0;
      }
  </code></pre>
  
  <p>Exists other function, or a modification that do not shows the console?</p>
  
  <p>Thanks you! Best regards.</p>