says I do not have permission

Airbrushkid

2[H]4U
Joined
Aug 27, 2007
Messages
2,429
I'll start with my main computer crashed and it had Windows XP on it, so I pulled the hard drive and mounted it in my external enclosure. Then hook it with usb to my Vista machine. tried to copy my files that I need and I permission. I set the permissions but still won't let me copy the files. Can someone help?
 
Run these commands from an administrator command prompt:

For Files:

takeown /f file_name /d y
icacls file_name /grant administrators:F


For Directories (will perform action recursively):

takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t
 
Like Stonecat said, you need to "take ownership" of the directories or files you are moving. Unlocker is a nifty program that integrates into the shell of windows if you don't feel like clicking through menus.
 
Back
Top