Why is access denied on moving a folder to program files folder with administrator privileges?
<p>So I want to move a folder called <code>test</code> to the directory <code>"%PROGRAMFILES(x86)%"</code>.
However, even by running the batch file as administrator, it won't really move. I get the error message:</p>

<blockquote>
  <p>Access denied.</p>
</blockquote>

<p>This is my current batch file:</p>

<pre><code>@echo off
move %~dp0test "%PROGRAMFILES(x86)%"
pause
</code></pre>

<p><code>%~dp0</code> is for the current directory of the folder (desktop in my case).</p>

<p>So how can I solve this issue to move the folder <code>test</code> to <code>"%PROGRAMFILES(x86)%"</code> without the access denied error?</p>