Question : cant delete folders: The source file name(s) are larger than is supported by the file system...

ok this is nuts.  for years we had a backup program dumping files to a server, and now i went to look at it and it's all hosed up.

for example, in the D drive we have a folder called ts01-backup
i can't delete that folder because 30 levels deep, there's still files, and the path name is too long.

please dont suggest "unlocker" or file assassin, they don't work for this.  they're not locked, or in use, and i have all the permissions i need.

now, here's an example path:
d:\ts01-backup\ts01\c$\ts01\c\documents and settings\username\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data\mozilla\firefox\profiles\random.letters\cache.

you see what it did there right, it flipped out.

yes i know i can map a network drive, or SUBST a drive letter such that:
K:\ = "d:\ts01-backup\ts01\c$\ts01\c\documents and settings\username\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data\application data"

but you see, there are 30 usernames in there and i'm looking at, at least 6 maps per username.

not only is username\applicationdata duplicated like that, but username\localsettings\applicationdata is also duplicated 30 times or more... among other folders.

so - how can i whack the entire whole of d:\ts01-backup without any regard or care to what's in it?

i've tried in dos:
rd ts01-backup /s
but it is just an endless flood of 'cant delete this\that\this\that ... too long'

i've tried in COMMAND using:
dir/x
del ts01-o~1 /s
but it hits the 'too long' too

to complicate things, if i do this:
cd ts01-backup
cd ts01
cd c$
cd ts01
cd c
dir
NOTHING shows up.   but if i hit:
cd [tab], it auto-completes to documents and settings

i say this because, nothing shows up using DIR, which pretty much kills scripting.

what do i do?

(server 2008)

Answer : cant delete folders: The source file name(s) are larger than is supported by the file system...

i found this java utility that crawls/deletes really long paths
http://www.osmstudios.com/Display.asp?Page=pathtoolong

it worked great for the first 2 folders, just says an error has occurred for the last 3

i have:
s:\ts01 backup
s:\ts02 backup
s:\ts03 backup
s:\ts04 backup
s:\ts05 backup

worked for 1 and 2, not for 3,4,5 :/
Random Solutions  
 
programming4us programming4us