Problem deleting lots of folders within folders
Hi, I run a script every night which deletes .exe files from student home filders. Some students have figured out that if they create lots of folders within folders they can't be deleted. e.g. one folder is named
"Y:\Data\students\0405\jbloggs\games\pictures\ foot ball\year 9 work\games\ha ha aha ahahahahahahahahahaha aahahaah ah aha hahahahaha ha ah mwahwhahaha\games\ahhhahahahahahahahah ah ah a ah a ahaha ha ha haha ha ha ha ahh a ha\games" .
I have also tried the rmdir /s command but this also does not work. Has anyone ever come across a solution for this problem? Any help would be greatly appreciated. Thanks.