2

I have two copies of same folder in windows. but the permissions of one of them are missing. How can I copy permissions of the original source to other? I know I can use the xcopy command but the data is big and if I use xcopy I should waste much time. whats your advise?

2
  • If one is simply a copy of the other what is the reason you can't simply delete one and start over with a new copy of the other one, or am I missing something? Jan 14, 2014 at 14:44
  • you can simply say I don't know.to copy that folder you should spend 5 hours. Is it OK?
    – Ahmad
    Jan 15, 2014 at 11:44

2 Answers 2

1

You could use icacls to first enumerate all permissions and then re-apply them:

To save:

icacls [your_source_path]\* /save aclfile /t

To restore (re-apply)

icacls [your_destination_path]\ /restore aclfile

Reference, examples taken and modified from http://technet.microsoft.com/en-us/library/cc753525.aspx

1
  • Oh, I have fallen in the trap! (old question). I will leave it here, maybe someone will find this useful...
    – wmz
    Dec 19, 2014 at 10:06
0

I think just use windows explorer (the graphical interface) to delete, then cut and paste to make the new copy. Then go do something else while you wait. Let the computer do the work for you.

By the way, when you do the delete it will ask you to permanently delete because of the large size of what you are requesting to delete. Answer yes. (If you delete and it goes to your garbage can it is much slower.)

Messing around with the old xcopy is not what I would be doing if I were you.

1
  • and what about permissions?
    – Ahmad
    Jan 15, 2014 at 12:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .