title: Running an external exe from win32 application
body: <p>I am working on a WIN32 application in <strong>Visual Studio 2010</strong>. I have to execute an external exe from my code but don't have to show its window. along with executing the exe I am passing certain argument to exe. my code is given</p>
  
  <pre><code>char path[] = "D:\\scan\\scan.exe -l";
  system(path);
  //ShellExecute(hWnd, "open",path, NULL, NULL, SWP_HIDEWINDOW); 
  </code></pre>
  
  <p>if I use system(path) it is executed properly but the window of the exe is also shown, but if I use ShellExecute(hWnd, "open",path, NULL, NULL, SWP_HIDEWINDOW); then the exe of the given path is not executed. 
  how should I overcome this problem, kindly guide me</p>