SteveT Posted May 31, 2006 Posted May 31, 2006 W2003 I`ve a strange file in a users area which I`m unable to delete. File x, contains File y, contains File z. File z, contains File x, contains File y, contains File z, contains File x etc. This appears to go on indefinitely! (gave up drilling down after a while). Unable to delete (directory not empty). Any ideas?
NetworkGeezer Posted May 31, 2006 Posted May 31, 2006 Use the following command at a command prompt window RD /S /Q x If you are sure that x and it's sub folders contain nothing. The Q switch removes the need for confirmation so you must be absolutely sure.
Face-Man Posted June 1, 2006 Posted June 1, 2006 I had this problem with a student creating a file name and folder tree longer than windows can handle. in the end I had to map a drive to shortern the directory tree run a search for *.* to find what was in there and delete it that way. RD should work though
OutToLunch Posted June 1, 2006 Posted June 1, 2006 RD seems to still throw a wobbly if you ask it to delete a directory tree containing a filename which would normally cause problems. The best way I've found to get rid of directories/files with invalid names is a combination of the RD as suggested above and the alternative method of accessing files using a variation on UNC paths. Rather than trying to map a network drive further down the directory tree, you can use the following syntax to avoid long filename problems : \\?\driveletter:\folder e.g \\?\C:\x\ RD will accept paths in this format as a parameter - so for example RD /s /q \\?\C:\x
mrforgetful Posted June 5, 2006 Posted June 5, 2006 Use the following command at a command prompt window RD /S /Q x If you are sure that x and it's sub folders contain nothing. The Q switch removes the need for confirmation so you must be absolutely sure. Or, when they come to complain valuable work has being lost just tell them it's their own damn fault!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now