I took ownership of the files . Using the link is easiest and shows you how to create a registry key and take ownership of the files through a simple shift + right click menu. Deleting the files was possible after I ran this however I did have to run it twice on stubborn files that did not want to delete. Also, run the command on a single folder instead of multiple-selecting folders because you will have to click Vista's lovely "continue" prompts for each folder.
If you don't want to install something permanently in your registry you could also use the command like to do this. You have to use the takeown and icacls commands. Make sure you start the command window with "Run as Administrator" or you will run into problems.
Here are the commands to use:
- takeown /f "C:\yourdirectory\" /r
- icacls "C:\yourdirectory" /grant administrators:F
In certain cases on you may get a "Destination Folder Access Denied". You can get around this by holding Shift while you drag the folder to the Recycle Bin. This will delete the files directly without moving them to the Recycle Bin.
1 comment:
Try " Long Path Tool " is also useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors.
Post a Comment