Windows Thread, Infinitely nested files! in Technical; W2003
I`ve a strange file in a users area which I`m unable to delete.
File x, contains File y, contains ...
-
31st May 2006, 11:17 AM #1 Infinitely nested files!
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?
-
-
IDG Tech News
-
31st May 2006, 11:49 AM #2
- Rep Power
- 0
Re: Infinitely nested files!
Use the following command at a command prompt window
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.
-
-
1st June 2006, 08:07 AM #3 Re: Infinitely nested files!
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
-
-
1st June 2006, 09:51 AM #4 Re: Infinitely nested files!
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
-
-
5th June 2006, 02:40 PM #5 Re: Infinitely nested files!

Originally Posted by
NetworkGeezer Use the following command at a command prompt window
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!
-
SHARE:
Similar Threads
-
By boomam in forum How do you do....it?
Replies: 14
Last Post: 9th November 2007, 01:50 PM
-
By TechSupp in forum Networks
Replies: 1
Last Post: 21st September 2007, 02:34 PM
-
By thegrassisgreener in forum Windows
Replies: 5
Last Post: 6th September 2007, 06:57 PM
-
By starscream in forum Networks
Replies: 1
Last Post: 4th July 2007, 02:37 PM
-
By timbo343 in forum Windows
Replies: 11
Last Post: 18th April 2007, 02:58 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
-
Forum Rules