title: Copying files as administrator in a batch file
body: <p>So I have a batch file that copies files from one folder to a bunch of different folders.  </p>
  
  <p>The purpose of this batch file is to be like a simple installer(Without registry edits) to make it easier for others to use a set of files I am distributing.  Because this is being widely distributed, it will need to work on windows operatings systems from XP on.  The files need to be moved to the program files of a program (This works), their documents folder(Also works), and the program folder in the all users start menu(Does not work).</p>
  
  <p>So far I have been unsuccessful with xcopy and robocopy as they both tell me "access denied".  Also running the batch file with "Run as administrator".  If you can think of a more effective way to do what I'm trying to do besides a batch file I am open to ideas.</p>
  
  <pre><code>xcopy /q /y ".\add_ui.bat" "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\My Program\Add.bat"
  </code></pre>
  
  <p>I'm sure there's some simple trick that I'm missing.</p>
  
  <p>Thanks in advance!</p>