title: Run batch with C++
body: <p>I am a C++ beginner but I am trying to make a program that takes command line arguments and executes a bat file with those same arguments.</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  int main(int argsc, char *args[]) {
      if (argsc!=0) {
          char arg[] = "run.bat ",args;
          return system(arg);
      }
      return argsc;
  }
  </code></pre>
  
  <p>Here is my question:
  <br>How do I concatenate "run.bat " with args? System will only take "const char*".</p>