Deleting directory with long names inside
When you want to completely delete a directory and it has file with long names inside it, Robocopy does a VERY good job. The type of folders in this case could be Favorites with URLs that are really long. When this happens the folder/file path becomes too long for Windows to delete properly.
Open Cmd.exe prompt as administrator.
Type the following commands:
- mkdir “empty_dir”
- robocopy “empty_dir” “the_dir_to_delete” /s /mir
- rmdir “empty_dir”
- rmdir “the_dir_to_delete”
Categories: Active Directory, Consulting
Comments (0)
Trackbacks (0)
Leave a comment
Trackback