title: cmd / DOS / Batch command rename files as a Administrator
body: <p>i want to rename a file named somefile.exe to somefile2.exe in CMD or batch file(.bat)</p>
  
  <p>when i do this in explorer i have to rename the file as a Admin. like this:</p>
  
  <p><img src="https://i.stack.imgur.com/cYdNI.png" alt="enter image description here"></p>
  
  <p>(sorry for swedish)</p>
  
  <p>ok, i need to click "Continue" ("Fortsätt") and i can rename the file! very simple!</p>
  
  <p>but in CMD.exe or batch file it says "Access Denied"
  im using:</p>
  
  <p>rename somefile.exe somefile2.exe</p>
  
  <p>how can i do this in CMD or batch file? rename a file as a Admin?</p>