How to copy as admin in windows7

My requirement is to copy the updated jar to our application directory in Program Files when a new update is available. I am facing a denial of access problem when copying in Windows 7. Can someone help me find out how to copy a file as an administrator?

Any alternative solution for installing the update is welcome.

+4
source share
3 answers

As a one-time action, you can provide additional permissions for your application directory for the specified user.

  • In Windows Explorer, right-click the specified folder.
  • Go to properties
  • Click the Security tab
  • Click Change ...
  • Change the resolution as appropriate
+1
source

Give read \ write NTFS permissions to your application directory for the user with whom you are running the COPYing \ script program. (This permission regulation is a one-time activity as part of the installation of your application) "..java program that was run without administrator privileges .."

0
source

Deactivate Microsoft Security Essentials and the copy will work better.

0
source

Source: https://habr.com/ru/post/1333649/


All Articles