title: Cmd. exe error occurred when compiling C file with VSCode + Clang in win environment
body: <p>I write a new .c file named <code>helloengine_win.c</code> and use shortcuts <code>shift + ctrl + b</code> to complier it.
  The <code>tasks.json</code> is :</p>
  <pre><code>{
  &quot;version&quot;: &quot;2.0.0&quot;,
  &quot;tasks&quot;: [
      {
          &quot;type&quot;: &quot;cppbuild&quot;,
          &quot;label&quot;: &quot;C/C++: clang.exe&quot;,
          &quot;command&quot;: &quot;D:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\x64\\bin\\clang.exe&quot;,
          &quot;args&quot;: [
              &quot;-fdiagnostics-color=always&quot;,
              &quot;-g&quot;,
              &quot;${file}&quot;,
              &quot;-o&quot;,
              &quot;${fileDirname}\\${fileBasenameNoExtension}.exe&quot;,
              &quot;-L&quot;,
              &quot;C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.19041.0\\um\\x64\\User32.Lib&quot;,
              &quot;C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.19041.0\\um\\x64\\Gdi32.Lib&quot;
          ],
          &quot;options&quot;: {
              &quot;cwd&quot;: &quot;D:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\x64\\**&quot;
              
          },
          &quot;problemMatcher&quot;: [
              &quot;$gcc&quot;
          ],
          &quot;group&quot;: {
              &quot;kind&quot;: &quot;build&quot;,
              &quot;isDefault&quot;: true
          },
          &quot;detail&quot;: &quot;\&quot;D:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\x64\\bin\\clang.exe\&quot;&quot;
      }
  ]
  </code></pre>
  <p>}</p>
  <p>The file uses <code>GetStockObject()</code> so I need the lib <code>User32.Lib</code> and <code>Gdi32.lib</code></p>
  <p>But when I complier the file I get :
  <code>spawn C:\Windows\system32\cmd.exe ENOENT generation is complete, but an error occurred</code></p>
  <p>I have confirmed that all library files exist and no errors are reported in the documentation.I don't konw what's wrong.</p>