Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Dec 2009
    Location
    Winnipeg, Manitoba, Canada
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    Recursive directory tree

    I was looking for a file with a given extension and I knew it was on my system (C) partition. Being a dinosaur (I go back to the days of punch cards and paper tape), I used the command line as in

    C:>dir *.mdb /s

    To my surprise I started getting the following (only a small section shown here).

    The directory name C:\ProgramData\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data
    \ACD Systems\ACDSee Pro\3.0\ACDInTouch\EN\StaticPages\Images is too long.
    The directory name C:\ProgramData\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data
    \Application Data\Adobe\Setup\{AC76BA86-7AD7-1033-7B44-AA1000000001} is too long.

    When I located to the C:\ProgramData folder and did a dir I saw

    C:\ProgramData\Application Data>dir
    Volume in drive C is C-OS
    Volume Serial Number is 36A4-74B7

    Directory of C:\ProgramData\Application Data

    2012-03-30 07:43 <DIR> {F0489EF2-D393-4114-85BA-A94D71D89543}
    2012-03-26 23:13 <DIR> ACD Systems
    2012-03-26 20:53 <DIR> Acronis
    2012-03-28 07:05 <DIR> Adobe
    2012-03-27 18:33 <DIR> CanonIJMSetup
    2012-03-27 18:32 <DIR> CanonIJWSpt
    2012-04-12 23:36 <DIR> Dell
    2012-03-26 23:11 <DIR> DivX
    2012-03-26 23:20 <DIR> InstallShield
    2012-03-26 21:22 <DIR> LogiShrd
    2012-03-26 21:22 <DIR> Logitech
    2012-04-02 15:54 <DIR> Microsoft Help
    2012-03-26 21:14 <DIR> NVIDIA
    2012-03-30 07:37 <DIR> PCDr
    2012-03-27 13:24 <DIR> Roxio
    2012-03-27 13:16 <DIR> Sonic
    2012-04-02 16:05 <DIR> Trend Micro
    2012-04-12 23:40 <DIR> VMware
    2012-03-28 13:12 <DIR> VS
    2012-04-13 07:05 27,649 nvModes.001
    2012-04-13 07:05 27,649 nvModes.dat
    2 File(s) 55,298 bytes
    19 Dir(s) 30,112,960,512 bytes free

    But knowing not everything is always visible I did a dir /a:h and saw

    C:\ProgramData>dir /a:h
    Volume in drive C is C-OS
    Volume Serial Number is 36A4-74B7

    Directory of C:\ProgramData

    2012-04-12 23:36 <DIR> .
    2012-04-12 23:36 <DIR> ..
    2012-03-26 22:44 <DIR> {A3A26C56-02C3-4F76-A033-12EE2FB52AE6}
    2009-07-13 23:53 <JUNCTION> Application Data [C:\ProgramData]
    2012-03-27 18:30 <DIR> CanonBJ
    2012-03-27 18:37 <DIR> CanonEPP
    2012-03-27 18:37 <DIR> CanonIJEPPEX2
    2012-03-27 16:56 <DIR> CanonIJScan
    2012-03-27 16:47 <DIR> CanonIJSolutionMenu
    2009-07-13 23:53 <JUNCTION> Desktop [C:\Users\Public\Desktop]
    2009-07-13 23:53 <JUNCTION> Documents [C:\Users\Public\Documents]
    2009-07-13 23:53 <JUNCTION> Favorites [C:\Users\Public\Favorites]
    2009-07-13 23:53 <JUNCTION> Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]
    2009-07-13 23:53 <JUNCTION> Templates [C:\ProgramData\Microsoft\Windows\Templates]
    2012-03-27 13:24 1,088 ntuser.pol
    1 File(s) 1,088 bytes
    14 Dir(s) 30,112,952,320 bytes free

    Note that the JUNCTION point "Application Data" points right back to the same folder. Recursing into Application Data takes you right back into ProgramData. This seems to be the source of the problem. Any process trying to traverse this folder and all subfolders will fall into the endless pit of infinite recursion. Thinking that something might have scrambled my Windows installation, I fired up my vmWare copy of Windows 7 and found the same structure in my virtual machine. It appears this is deliberate but, for the life of me, I can't understand why. Can anyone explain this bizarre behaviour?

  2. #2
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    2,854
    Thanks
    19
    Thanked 110 Times in 104 Posts
    See this Windows SevenForums thread... Alleged fix in post #6. But do read through all 63 posts...!
    BATcher

    Dear Diary, today the Hundred Years War started ...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •