title: Using a Batch File to Copy Desktop icons from %userprofile%\Desktop to %public%\Desktop
body: <p>I have searched and searched and can not figure this out. </p>
  
  <p>What I am trying to do is after a user installs a particular program package, I want the icons installed with the package to be deleted and then I want my icons saved on our server (<code>T:\0CADD_14\_SetupDocs\AutoCAD 2014 - English.lnk</code>) to be placed in <code>%public%\Desktop</code>. </p>
  
  <p>In the laymen world of copying files, i.e. <kbd>Ctrl</kbd>+<kbd>C</kbd> / <kbd>Ctrl</kbd>+<kbd>V</kbd>, I get the error message <strong>Location is not available</strong>. I can however copy that file to my desktop (<code>%userprofile%\Desktop</code>) and then move the files into <code>%public%\Desktop</code> but I have to click "Continue" as the admin to say this is okay. </p>
  
  <p>I am guessing the code is getting hung up on that admin part but haven't been able to figure out how to get past that in the batch file, this is my code</p>
  
  <pre><code>DEL /Q /F "C:\Users\Public\Desktop\AutoCAD 2014 - English.lnk"
  DEL /Q /F "C:\Users\Public\Desktop\Civil 3D 2014 Imperial.lnk"
  COPY "T:\0CADD_14\_SetupDocs\AutoCAD 2014 - English.lnk" "%USERPROFILE%\Desktop\AutoCAD 2014 - English.lnk"
  COPY "T:\0CADD_14\_SetupDocs\Civil 3D 2014 Imperial.lnk" "%USERPROFILE%\Desktop\Civil 3D 2014 Imperial.lnk"
  MOVE %USERPROFILE%\Desktop\Civil 3D 2014 Imperial.lnk "%public%\Desktop\Civil 3D 2014 Imperial.lnk"
  MOVE %USERPROFILE%\Desktop\AutoCAD 2014 - English.lnk "%public%\Desktop\AutoCAD 2014 - English.lnk"
  </code></pre>
  
  <p>For whatever reason "Run as administrator" isn't working either. Other post I have read talk about disabling the UAC to work around this issue but I'd rather not do that. </p>