I inherited a file syncronisation system which adds a tag of ".pstmp" to certain directories every day. Within a short period of time you end up with directory names which are 28973287328973 characters long and unusable by most software eg
day17 hello.pstmp.pstmp.pstmp.pstmp.pstmp.pstmp.pstmp.pstmp.pstmp.pstmp.pstmp.pstmp etc
Note it just does this with folders and not files (thank god!)
I can remove the bad folders manually via something like
dir /x (to get the 8.3 name)
rd adobe~~1.~ps /s (nb will only work with the actual 8.3 name, not wild cards it seems)
Sadly, wild cards dont appear to work with rd though, and there are several thousand of these folders, so doing them manually one at a time isn't appealing. Any batch file gurus know a way to automate this?