I'm using below command to create new folder by copying contents of the existing folder and command prompt throws Access Denied error.
Command:
C:\Users\Kundur.Rudresh>Xcopy C:\test D:\test /O /X /H /K
Please let me know do i need to give any permissions.? especially for below points.?
- /O Copies file ownership and ACL information.
- /X Copies file audit settings (implies /O).
If remove /O and /X from command, which works fine and folder will be created.
CodePudding user response:
You dont have to give any permission. Ond olle birayani thinkondu banni. Sari hoguthe.
CodePudding user response:
Add /I
to your xcopy
parameters. Check xcopy /?
for details.
Xcopy C:\test D:\test /I /O /X /H /K