+ Post New Thread
Results 1 to 5 of 5
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 ...
  1. #1

    Join Date
    Jun 2005
    Location
    Kendal, Cumbria
    Posts
    605
    Thank Post
    57
    Thanked 67 Times in 44 Posts
    Rep Power
    40

    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?

  2. #2

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Infinitely nested files!

    Use the following command at a command prompt window

    Code:
     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.

  3. #3
    Face-Man's Avatar
    Join Date
    Dec 2005
    Location
    London
    Posts
    577
    Thank Post
    11
    Thanked 58 Times in 40 Posts
    Rep Power
    70

    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

  4. #4

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65

    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

  5. #5
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,639
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Infinitely nested files!

    Quote Originally Posted by NetworkGeezer
    Use the following command at a command prompt window

    Code:
     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!

SHARE:
+ Post New Thread

Similar Threads

  1. MSI Files.
    By boomam in forum How do you do....it?
    Replies: 14
    Last Post: 9th November 2007, 12:50 PM
  2. ntuser.dat,man files
    By TechSupp in forum Wireless Networks
    Replies: 1
    Last Post: 21st September 2007, 02:34 PM
  3. .nrg files HELP!
    By thegrassisgreener in forum Windows
    Replies: 5
    Last Post: 6th September 2007, 06:57 PM
  4. WDS and .WIM files.
    By starscream in forum Wireless Networks
    Replies: 1
    Last Post: 4th July 2007, 02:37 PM
  5. MS Access files
    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
  •