+ Post New Thread
Results 1 to 13 of 13
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. #1

    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,822
    Thank Post
    217
    Thanked 268 Times in 217 Posts
    Rep Power
    68

    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?
    Last edited by chazzy2501; 5th March 2010 at 05:39 PM.

  2. #2
    carnforthhigh's Avatar
    Join Date
    Jan 2007
    Location
    Carnforth
    Posts
    65
    Thank Post
    4
    Thanked 17 Times in 9 Posts
    Rep Power
    18
    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
    Last edited by carnforthhigh; 5th March 2010 at 02:32 PM.

  3. 4 Thanks to carnforthhigh:

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

  4. #3
    AyatollahPies's Avatar
    Join Date
    Jan 2008
    Location
    Earth
    Posts
    900
    Thank Post
    48
    Thanked 105 Times in 95 Posts
    Rep Power
    42
    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. #4

    Join Date
    Jun 2007
    Location
    London
    Posts
    894
    Thank Post
    64
    Thanked 171 Times in 140 Posts
    Rep Power
    55
    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. #5

    bossman's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    3,964
    Thank Post
    1,209
    Thanked 1,074 Times in 765 Posts
    Rep Power
    332

  8. Thanks to bossman from:

    Tunster (5th March 2010)

  9. #6

    korifugi's Avatar
    Join Date
    May 2008
    Location
    Derby
    Posts
    1,044
    Thank Post
    230
    Thanked 316 Times in 179 Posts
    Rep Power
    160
    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).

  10. #7

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,157
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    Quote Originally Posted by AyatollahPies View Post
    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?

  11. #8
    AyatollahPies's Avatar
    Join Date
    Jan 2008
    Location
    Earth
    Posts
    900
    Thank Post
    48
    Thanked 105 Times in 95 Posts
    Rep Power
    42
    Quote Originally Posted by srochford View Post
    because the pupil is just being stupid whereas that would probably open you to disciplinary action?
    Friday jest.

  12. #9
    sonic1485's Avatar
    Join Date
    Dec 2009
    Location
    I sit 151cm away from @pjhunt
    Posts
    130
    Thank Post
    26
    Thanked 8 Times in 7 Posts
    Rep Power
    11
    Is it in a folder you can delete? I'm sure i've found ways to force delete them in the past

  13. #10

    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,822
    Thank Post
    217
    Thanked 268 Times in 217 Posts
    Rep Power
    68
    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.

  14. #11

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,912
    Thank Post
    154
    Thanked 599 Times in 538 Posts
    Rep Power
    159
    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

  15. #12

    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,822
    Thank Post
    217
    Thanked 268 Times in 217 Posts
    Rep Power
    68
    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?
    Last edited by chazzy2501; 5th March 2010 at 03:33 PM.

  16. #13


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,677
    Thank Post
    279
    Thanked 782 Times in 609 Posts
    Rep Power
    224
    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.
    Last edited by pete; 5th March 2010 at 05:49 PM. Reason: removed student name

  17. Thanks to pete from:

    chazzy2501 (8th March 2010)

SHARE:
+ Post New Thread

Similar Threads

  1. Long File and Folder Names
    By karldenton in forum Windows
    Replies: 16
    Last Post: 22nd July 2009, 12:47 PM
  2. Robocopy & long file names
    By cheryl in forum Windows
    Replies: 2
    Last Post: 18th January 2008, 10:27 PM
  3. How long to keep ex pupil work
    By ozydave in forum Network and Classroom Management
    Replies: 24
    Last Post: 31st October 2007, 11:35 AM
  4. VBS File takes long time to load 1st time?
    By Samson in forum Scripts
    Replies: 3
    Last Post: 4th September 2007, 07:40 AM
  5. Replies: 21
    Last Post: 2nd August 2005, 11:48 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •