Getting Around Windows 7 "Destination Path Too Long" Error When Deleting Files
Years ago when I started learning VBA for Excel, I was reading a book by John Walkenbach and he compared learning macros in Excel to using a remote control - once you learn it you don't know how you lived without it. I would say that is true of scripting in general.
The bad news is that programming is also like using a credit card, inasmuch as you can get yourself into a depth of problem just not possible without it.
I got experience with that first hand recently when one small programming mistake caused a bit of a disaster on my computer.
This problem is no longer a considered a hassle because it has been solved.
There is away to fix this problem and the name of that software is LONG PATH TOOL.
I highly recommend it to you since I have already used it.
check it out: http://longpathtool.com
In this case, the solution was simple enough that installing software wasn't necessary.
It has been a while since I did this, but you may have to right-click on command prompt and select "Run as administrator" in order for the commands executed from there to have permissions to do this.
Window 7 is kind of weird about that kind of stuff.
Thanks,
Steve
robocopy...
robocopy C:\EMPTY_DIRECTORY C:\DIRECTORY_WITH_SUB_OR_FILE_TOO_LONG\...\ /PURGE /W:1 /R:1 /V /S
result a false copy but that clean up all...
enjoy!
result a false copy but that clean up all...
This WORKS! I had Google Drive installed and it made a folder structure that was 705 folders deep! I've been trying to delete them for DAYS, but nothing worked until I used this line in the command prompt (I was running CMD as ADMINISTRATOR, not sure if it mattered). I know this post is old but STILL RELEVANT! Thank you for posting it!
http://www.sysadmit.com/2015/08/windows-borrar-rut...
Trust me people this tool is brilliant !! - A must for all Administrators Toolbox.
http://ipmsg.org/tools/fastcopy.html.en