+ Post New Thread
Results 1 to 7 of 7
How do you do....it? Thread, Delete Files and Folders - How do you do it? in Technical; I am deleting some old student files and folders but am finding that some of the students have created really ...
  1. #1

    fiza's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    2,223
    Thank Post
    446
    Thanked 319 Times in 270 Posts
    Rep Power
    153

    Delete Files and Folders - How do you do it?

    I am deleting some old student files and folders but am finding that some of the students have created really deep folder paths that I cannot delete the files/folders as I get "Cannot delete file :" or "The file name you specified is not valid or too long". I then have to go in and rename all the sub folders to single characters which can be very time consuming.

    I tried using "rmdir /s" but this wont do some folders.

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,717
    Thank Post
    341
    Thanked 517 Times in 485 Posts
    Rep Power
    180
    Path Too Long | Filename too long | Filename is too long | Path too long utility or 7zip filemanager Works with the longer filepaths etc

    Steve

  3. Thanks to Steve21 from:

    speckytecky (17th March 2013)

  4. #3


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,800
    Thank Post
    231
    Thanked 883 Times in 759 Posts
    Rep Power
    300
    map a network drive durther down the path so if its really
    d:\users\2009\fbloggs\fdfdsfdsfsd\dfdsfdfdfsd\asfd fdfsdfs\fddffsdfdsfdsf
    map z: (say) to
    \\server\users$\2009\fbloggs\fdfdsfdsfsd\dfdsfdfdf sd\asfdfdfsdfs
    delete the files remove the drive map then remove the higher up folders

  5. 2 Thanks to sted:

    fiza (28th February 2013), speckytecky (17th March 2013)

  6. #4

    fiza's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    2,223
    Thank Post
    446
    Thanked 319 Times in 270 Posts
    Rep Power
    153
    @Steve21 - Id rather not have to buy something to do this.
    @sted - problem with that is there are tons of folders. ie Student share then all the student folders under it.

  7. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    try Cygwin
    Cygwin

  8. #6

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,717
    Thank Post
    341
    Thanked 517 Times in 485 Posts
    Rep Power
    180
    Quote Originally Posted by fiza View Post
    @Steve21 - Id rather not have to buy something to do this.
    Use something like 7zip filemanager, unless it's changed it accepts a lot longer paths than bog standard Windows.

    Steve

  9. #7
    truebluesteve's Avatar
    Join Date
    Jan 2008
    Posts
    386
    Thank Post
    51
    Thanked 49 Times in 41 Posts
    Rep Power
    24
    We use Treesize Professional and it does a very good job of removing them. It will search for duplicate files, files that haven't been accessed for x amount of time and so on.

    There is a free version but it will only work on the machine it's installed on rather than the pro version which will work across your network.

    Steve

  10. Thanks to truebluesteve from:

    speckytecky (17th March 2013)

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 24
    Last Post: 1st June 2012, 06:46 PM
  2. Script to Delete Files and folders within a folder
    By doddsworthy in forum Scripts
    Replies: 17
    Last Post: 17th June 2011, 09:44 AM
  3. Replies: 3
    Last Post: 16th July 2010, 11:56 AM
  4. Folder access - Data Protection Act - How do you do it?
    By Paid_Peanuts in forum How do you do....it?
    Replies: 7
    Last Post: 29th August 2007, 11:39 AM
  5. Replies: 37
    Last Post: 11th February 2006, 12:37 PM

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
  •