+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
Windows Server 2008 Thread, Cannot delete folder in Technical; Hi all, I'm having an issue deleting a folder on an NTFS formated VHD attached to a 2008 server? So ...
  1. #1
    cookie_monster's Avatar
    Join Date
    May 2007
    Location
    Derbyshire
    Posts
    4,225
    Thank Post
    396
    Thanked 279 Times in 240 Posts
    Rep Power
    75

    Cannot delete folder

    Hi all, I'm having an issue deleting a folder on an NTFS formated VHD attached to a 2008 server?

    So far I've tried deleting direct with explorer, through the command prompt and through a share, the path to the folder is only 50 charters from the drive root so it's not too long. I've also rebooted the server and ran checkdisk.

    Any ideas?

    Thanks.

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,586
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    Malwarebytes.org

    There are other similiar tools - see link below

    http://www.thefreecountry.com/utilit...kedfiles.shtml

    scroll down the page a bit and you will see a list of utils to do the above mentioned

  3. #3
    Mcshammer_dj's Avatar
    Join Date
    Feb 2007
    Location
    Portsmouth
    Posts
    991
    Thank Post
    39
    Thanked 180 Times in 145 Posts
    Rep Power
    98
    Are there files or folders insire this folder that you do not "own"?

  4. #4
    cookie_monster's Avatar
    Join Date
    May 2007
    Location
    Derbyshire
    Posts
    4,225
    Thank Post
    396
    Thanked 279 Times in 240 Posts
    Rep Power
    75
    Are there files or folders insire this folder that you do not "own"?
    As far as I could tell it was empty the odd this was that no matter how I tried to delete it I was told that it did not exist but I could open it and create another file inside and delete that


    I've spent ages trying to get rid of that folder and waiting for checkdisk and so on, then I came accross this and it just removed it without a fuss, very odd

    UNLOCKER 1.8.7 BY CEDRICK 'NITCH' COLLOMB

  5. Thanks to cookie_monster from:

    ZeroHour (25th August 2009)

  6. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,586
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    if you went to the link i posted above as per my screen shot attached it mentions unlocker

    Not sure if you did or not just thought id mention it
    Attached Images Attached Images
    Last edited by mac_shinobi; 4th August 2009 at 04:57 PM.

  7. Thanks to mac_shinobi from:

    cookie_monster (4th August 2009)

  8. #6
    cookie_monster's Avatar
    Join Date
    May 2007
    Location
    Derbyshire
    Posts
    4,225
    Thank Post
    396
    Thanked 279 Times in 240 Posts
    Rep Power
    75
    I had already found it actually but it's a good link so i'll send you some thanks over

  9. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,586
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    Quote Originally Posted by cookie_monster View Post
    I had already found it actually but it's a good link so i'll send you some thanks over
    no problem

    the free country website has a lot more links to free software etc if you click on the utilities link at the bottom left it will take you to the relevant page

  10. #8

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,159
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    125
    Another useful tool is procexp Process Explorer

    This does lots of stuff; basically, it shows you all the processes running and lets you see what they have in use (registry, files, etc, etc). If you find you can't delete folder abc123 you open up procexp, do a search for "abc123" and it will tell you what process is using that folder. You might be able to close or kill that process (but don't kill it if the process is called winlogon ...)

  11. #9
    cookie_monster's Avatar
    Join Date
    May 2007
    Location
    Derbyshire
    Posts
    4,225
    Thank Post
    396
    Thanked 279 Times in 240 Posts
    Rep Power
    75
    Yep the Sysinternals suite is one of my faves used it for ages.

  12. #10
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,007
    Thank Post
    124
    Thanked 286 Times in 263 Posts
    Rep Power
    109
    I have just had some troublesome folders (deeply nested) and files that didn't seem to exist etc. I tried a few software options but didn't want to install any on the server which some required to "Clean at bootup". In the end I shared the folder above them, connected to the share from an Ubuntu VM and deleted them. Guess what............. They just deleted with no complaints!

  13. #11

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,159
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    125
    Quote Originally Posted by ChrisH View Post
    I have just had some troublesome folders (deeply nested) and files that didn't seem to exist etc. I tried a few software options but didn't want to install any on the server which some required to "Clean at bootup". In the end I shared the folder above them, connected to the share from an Ubuntu VM and deleted them. Guess what............. They just deleted with no complaints!
    This can happen when the path is too long - the user who created it probably had a drive mapped at the same sort of level as you and had no problems but working directly on the server you have a longer path (eg d:\home\username\folder1\folder2\f3\f4 but they see n:\folder1\folder2\f3\f4)

    When you do the mapping you get that shorter path and it all works. Another way to get round that is to start at the bottom and work up (so instead of trying to delete folder1, you delete f4, then f3 and so on up)

    Finally (at last - why does he never shut up!!!) you can use subst on the server (subst q: d:\home\username or whatever) and you can also net use on the server (net use q: \\server\home\username) - no need for a VM or other external machine.

  14. #12

    Join Date
    Apr 2009
    Posts
    123
    Thank Post
    10
    Thanked 5 Times in 5 Posts
    Rep Power
    0
    This happens here too with our little darlings trying to flummox the system.

    Open a command prompt and CD to the penultimate directory in the path...then do a dir/x command to obtain the DOS name of the folder. Type 'RD DOSfoldername'.

    Then 'CD ..' and do the same...until you have removed all the folders.

    No special tools required.

  15. #13

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,442
    Thank Post
    702
    Thanked 2,302 Times in 1,063 Posts
    Blog Entries
    23
    Rep Power
    678
    Quote Originally Posted by ChrisH View Post
    I have just had some troublesome folders (deeply nested) and files that didn't seem to exist etc. I tried a few software options but didn't want to install any on the server which some required to "Clean at bootup". In the end I shared the folder above them, connected to the share from an Ubuntu VM and deleted them. Guess what............. They just deleted with no complaints!
    I have found that Vista and W7 do this rather well to. Simply share the root drive\folder and then delte the miscreant from afar. No idea why some don't want to delete although I have often found that RIS\WDS images the hardest to remove.

  16. #14
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,007
    Thank Post
    124
    Thanked 286 Times in 263 Posts
    Rep Power
    109
    I tried a few of the mentioned methods but didn't get any joy. I went down to the last folder and tried to delete from there but that didn't work either. I will take note of the others I didn't try for next time though.

  17. #15


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,811
    Thank Post
    262
    Thanked 2,969 Times in 2,183 Posts
    Rep Power
    847
    There is an easier way to do this. At the Command Prompt, type a \\?\ before the file or folder path. This will allow you to delete paths up to 32,000 characters long.

    Examples
    Code:
    rd /s /q "\\?\C:\Documents and Settings\User\Desktop\Annoying Folder."
    Code:
    del "\\?\C:\Temp\Stuff\Another Annoying Folder."
    Your folder doesn't end with a dot does it? Windows doesn't like these at all it seems, although the method above will let you delete pretty much any folder.
    Last edited by Arthur; 5th August 2009 at 06:18 PM.



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

Similar Threads

  1. vbscript to copy a folder & delete a folder
    By MicrodigitUK in forum Scripts
    Replies: 2
    Last Post: 29th January 2009, 01:43 PM
  2. Can't delete corrupt folder
    By cookie_monster in forum Windows
    Replies: 7
    Last Post: 19th September 2008, 09:36 AM
  3. Delete a folder using Vbscript
    By soze in forum How do you do....it?
    Replies: 1
    Last Post: 2nd June 2008, 09:59 PM
  4. Replies: 2
    Last Post: 17th April 2008, 12:25 PM
  5. Delete a folder using scripting
    By FN-GM in forum Scripts
    Replies: 15
    Last Post: 22nd December 2007, 05:44 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
  •