title: Permission denied to create temporary file in Visual Studio Code
body: <p>When I try to 'Run Build Task' in VS Code using C/C++ plugin, I get the following error:</p>
  <p>Assembler messages:</p>
  <pre class="lang-none prettyprint-override"><code>Fatal error: can't create C:\Users\UserName\AppData\Local\Temp\cc2Ad432.o: Permission denied
  
  The terminal process &quot;C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command &amp; 'C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\g++.exe' -g c:\Users\UserName\projects\helloworld\helloworld.cpp -o c:\Users\UserName\projects\helloworld\helloworld.exe&quot; terminated with exit code: 1.
  Terminal will be reused by tasks, press any key to close it.
  </code></pre>
  <p>When I try to build a code in 'Code::Blocks' it displays the same error - <code>Can't create temporary file. Permission Denied</code>
  I tried changing the value of TEMP and TMP user variables in 'Environment variables'. That solved the problem for me but it doesn't allow 'Windows Word' to create temporary files.</p>