+ 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,694
    Thank Post
    352
    Thanked 803 Times in 718 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,694
    Thank Post
    352
    Thanked 803 Times in 718 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,068
    Thank Post
    629
    Thanked 2,232 Times in 1,020 Posts
    Blog Entries
    23
    Rep Power
    638
    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
    6,728
    Thank Post
    229
    Thanked 873 Times in 750 Posts
    Rep Power
    299
    is it worth booting off say barts pe and trying that?

  10. #10

    Join Date
    May 2008
    Location
    Kent
    Posts
    541
    Thank Post
    26
    Thanked 73 Times in 64 Posts
    Rep Power
    28
    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,476
    Thank Post
    10
    Thanked 500 Times in 440 Posts
    Rep Power
    114
    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,678
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    45
    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
    720
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31
    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
    2,898
    Thank Post
    820
    Thanked 561 Times in 440 Posts
    Rep Power
    263
    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, 08:34 AM
  2. vbscript to copy a folder & delete a folder
    By MicrodigitUK in forum Scripts
    Replies: 2
    Last Post: 29th January 2009, 12:43 PM
  3. Replies: 2
    Last Post: 17th April 2008, 11:25 AM
  4. Users unable to permanently delete files.
    By secman in forum Windows
    Replies: 13
    Last Post: 5th October 2006, 11:48 AM
  5. Replies: 3
    Last Post: 25th September 2006, 12: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
  •