Windows Thread, evil Pupil = File name specified too long in Technical; I have a pupil whos go out of his way to make the longest file path ever and I can't ...
1. ## evil Pupil = File name specified too long

I have a pupil whos go out of his way to make the longest file path ever and I can't remove it!

:\users\Students\06\06numpty\Trash\a\b\c\d\e\f\g\h \i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\y\z\Did you notice that there wasn't a x\you\are\just\wasting\your\time\ha\ha\you were laughing at the x thing werent you\i know\food\you greedy person\all gone\owned\your having fun aren't u

I can't get beyone the folder your having fun aren't you I I try an delete it windows complains about the file name being to long. (probably means file path but that the error i get)

how do I remove it?

2. map a drive as far down as you can get, that will let you get even further into the path. we have had this with a couple of our kids in the past.

http://support.microsoft.com/kb/320081

3. ## 4 Thanks to carnforthhigh:

actech (7th March 2010), chazzy2501 (5th March 2010), Gatt (5th March 2010), zag (5th March 2010)

4. Just before said pupil is due to hand in some important work, why not rename all of the files in their home folder, in a similar manner?

5. You could also grab a folder near the right-hand end of the chain and drag it higher up (i.e. into a folder near the LH end), then delete the lot.

6. ## Thanks to timzim from:

chazzy2501 (5th March 2010)

7. ## Thanks to bossman from:

Tunster (5th March 2010)

8. Yup - there is a maximum character length for any given filename. You can easily delete it by renaming the folders down to be less that 255 characters (including slashed and spaces).

9. Originally Posted by AyatollahPies
Just before said pupil is due to hand in some important work, why not rename all of the files in their home folder, in a similar manner?
because the pupil is just being stupid whereas that would probably open you to disciplinary action?

10. Originally Posted by srochford
because the pupil is just being stupid whereas that would probably open you to disciplinary action?
Friday jest.

11. Is it in a folder you can delete? I'm sure i've found ways to force delete them in the past

12. using the mapnetwork drive technique I was able to remove it.

Yes it was just a folder.

I found it by looking at the crash dump of "strings.exe" whilst looking for flash games in excel docs.

I'll give the other techniques a shot if I find anymore.

13. I've just done this by renaming the longer folders to a single character, enables you to get deeper and delete it normally. Usually not malice/idiocy that causes it here, but instead the fantastic folder structure which Studio 8 uses

14. I don't know whether this is worth a new post but I'm still having trouble with strings.exe now it says

findstr: line 1503872 is too long.

it seems to have stuck rather than crashed this time which means I can't see what it's stuck on!

any ideas?

EDIT: it's not stuck it continued and found more! how can I find out what files it's talking about?

15. You can also use
Code:
\\?\path\to\filename
in a command prompt to delete or rename it.

So:

Code:
\\?\D:\users\Students\YearGroup\OdiousStudent\Trash\a\b\c\d\e\f\g\h \i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\y\z\Did you notice that there wasn't a x\you\are\just\wasting\your\time\ha\ha\you were laughing at the x thing werent you\i know\food\you greedy person\all gone\owned\your having fun aren't u
will work.

16. ## Thanks to pete from:

chazzy2501 (8th March 2010)

SHARE: