Thursday, November 19, 2015

Deleting a folder with file names that are too long to be deleted

Simple process for deleting all the contents in a folder that are too long for Windows or DOS to delete.

Create a new folder called "del" with nothing in the del folder..
Let's say the folder with all the data you want to delete is in e:\shares\public

Run this command:
robocopy e:\del e:\shares\public /mir

This process will mirror the contents of e:\del into the folder e:\shares\public

Easy peasy.

No comments: