+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
Windows Server 2008 R2 Thread, Unable to delete folder and files in Technical; I have several folders and files I can't delete Some clearly have a space before the name e.g. " my ...
  1. #1
    jgcracknell's Avatar
    Join Date
    Mar 2009
    Location
    Somewhere
    Posts
    93
    Thank Post
    5
    Thanked 1 Time in 1 Post
    Rep Power
    21

    Unable to delete folder and files

    I have several folders and files I can't delete

    Some clearly have a space before the name e.g. " my ecv" (I don't know if there are trailing spaces)

    Some just come up with "could not find this item - then the location" - Verify the Item's location and try again.

    Thanks for any help and advice.

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,706
    Thank Post
    354
    Thanked 807 Times in 722 Posts
    Rep Power
    348
    Is it in a deep path?

  3. #3
    jgcracknell's Avatar
    Join Date
    Mar 2009
    Location
    Somewhere
    Posts
    93
    Thank Post
    5
    Thanked 1 Time in 1 Post
    Rep Power
    21
    Quote Originally Posted by kmount View Post
    Is it in a deep path?
    Hi

    D:\to_delete\To sort\Problem Areas\old to delete\x-brodier\ my ecv

    is one of them - I've renamed some of the directories as you can see - but can't move the rest.

  4. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,706
    Thank Post
    354
    Thanked 807 Times in 722 Posts
    Rep Power
    348
    Hm.. used to see this when it was a very deep path but that's not very deep.

    Have you tried via a command prompt?

  5. #5
    jgcracknell's Avatar
    Join Date
    Mar 2009
    Location
    Somewhere
    Posts
    93
    Thank Post
    5
    Thanked 1 Time in 1 Post
    Rep Power
    21
    Hi - tried via command prompt - making a share and accessing it that way. Renaming....it just wont go!

  6. #6

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,441
    Thank Post
    701
    Thanked 2,302 Times in 1,063 Posts
    Blog Entries
    23
    Rep Power
    678
    I've also found turning an upper folder into a share and deleting remotely works as well.

  7. #7
    jgcracknell's Avatar
    Join Date
    Mar 2009
    Location
    Somewhere
    Posts
    93
    Thank Post
    5
    Thanked 1 Time in 1 Post
    Rep Power
    21
    Hi Ken

    Tried that - no luck

  8. #8
    jgcracknell's Avatar
    Join Date
    Mar 2009
    Location
    Somewhere
    Posts
    93
    Thank Post
    5
    Thanked 1 Time in 1 Post
    Rep Power
    21
    I have got rid of a couple of dodgy files with del "\\?\PATHTO FILE" but it isn't working for folders - one claims to be empty but has a system file in place

  9. #9


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    7,059
    Thank Post
    232
    Thanked 926 Times in 795 Posts
    Rep Power
    309
    is it worth booting off say barts pe and trying that?

  10. #10

    Join Date
    May 2008
    Location
    Kent
    Posts
    601
    Thank Post
    29
    Thanked 80 Times in 69 Posts
    Rep Power
    30
    delinvfile or similar would do the job, you can download a working trial.

  11. #11
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,505
    Thank Post
    10
    Thanked 508 Times in 445 Posts
    Rep Power
    116
    Also try dir /x to see what windows is using for the short name, you may be able to rename from command line with that instead. Also rmdir /s with the absolute (\\?\) path (short name) may work for the folder.

  12. #12

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,679
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    46
    Turn on hidden files and check there nothing there. Also check that you have full control over all the files in the directory (if there are any).
    In the past Ive had problems with odd Java files in users profile folder where only the user has ad access. I've had to manually take owernership, give myself permission to delete then delete them.

  13. #13

    Join Date
    Jun 2008
    Posts
    745
    Thank Post
    121
    Thanked 70 Times in 57 Posts
    Rep Power
    33
    I've only tried this on a workstation and never on a server level. My first instinct would be to turn towards a Linux distro CD and booting off from that to delete the stubborn files. Then again, will it recognise the drives as seperate partitions considering they're raided..?

  14. #14

    Join Date
    Jan 2012
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by DMcCoy View Post
    Also try dir /x to see what windows is using for the short name, you may be able to rename from command line with that instead. Also rmdir /s with the absolute (\\?\) path (short name) may work for the folder.
    Thanks for this suggestion. I was unable to delete some OLD files (I dare say DOS old, but who knows.) They had 8 character names in caps ending with periods and no file extensions.

    Doing the dir /x gave me the old style name (i.e. ABCDEF~1) and I could delete them command line using that syntax.

  15. #15

    Oaktech's Avatar
    Join Date
    Jul 2011
    Location
    Bournemouth
    Posts
    3,217
    Thank Post
    943
    Thanked 645 Times in 504 Posts
    Rep Power
    288
    could you try deleting via 7zip or unstoppable copy?



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 1st July 2014, 09:34 AM
  2. vbscript to copy a folder & delete a folder
    By MicrodigitUK in forum Scripts
    Replies: 2
    Last Post: 29th January 2009, 01:43 PM
  3. Replies: 2
    Last Post: 17th April 2008, 12:25 PM
  4. Users unable to permanently delete files.
    By secman in forum Windows
    Replies: 13
    Last Post: 5th October 2006, 12:48 PM
  5. Replies: 3
    Last Post: 25th September 2006, 01:27 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
  •