title: Use System() with some dos commands issue:: QUERY.EXE is not recognized as an internal or external command, operable program or batch file
body: <p>I am trying to execute "query user" inside this function system("query.exe user")</p>
  
  <pre><code>   int main()
     {
        system("query.exe user");
        system("c:\\windows\\system32\\query.exe");
        return 0;
     }
  </code></pre>
  
  <p>but the result is: 
  query.exe is not recognized as an internal or external command, operable program or batch file.</p>