One way to overcome this is to use robocopy, a command line tool that comes standard in any modern version of Windows.
- Open a command prompt (Start->Run->cmd)
- Navigate to the parent of the directory you want to delete (cd [path])
e.g. if you want to delete C:\dev\example\toolongdirroot\, navigate to C:\dev\example\ - Make an empty directory (mkdir .\emptydir)
- Use robocopy to mirror the empty directory to the toolongdirroot (robocopy .\emptydir .\toolongdir /mir)
- Congratulations, you did it! Delete emptydir and toolongdir and you're done!
No comments:
Post a Comment