Home > Software design >  Xcopy /O /X throwing access denied error on command prompt
Xcopy /O /X throwing access denied error on command prompt

Time:03-23

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.?

  1. /O Copies file ownership and ACL information.
  2. /X Copies file audit settings (implies /O).

If remove /O and /X from command, which works fine and folder will be created.

enter image description here

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
  • Related