title: Running WSL command from C++ code over windows
body: <p>I am running c++ code in windows from which I want to run the commands on the wsl.</p>
  
  <p>Here are the commands:</p>
  
  <pre><code>ShellExecuteA(NULL, "open", "cmd", "bash -c \"rm -f /tmp/xyz.log\"" , NULL, SW_SHOW);
  </code></pre>
  
  <p>and,</p>
  
  <pre><code>system("start \"bash -c \"rm -f /tmp/xyz.log\"\"");
  </code></pre>
  
  <p>I tried both of the above but it doesn't work. Although these commands work on the WSL command prompt.</p>