W23: Windows Explorer (and FSO) doesn't know how to reliably count files and subfolders - other options?

Ask a Question related to Windows Server, Design and Development.

  1. #1

    Default Re: W23: Windows Explorer (and FSO) doesn't know how to reliably count files and subfolders - other options?

    DIR directory /S fails and never produces a result.

    I have a couple CMD files that re-creates a sample folder and file
    hierarchy.

    Michael.


    "David Lowndes" <davidl@example.invalid> wrote in message
    news:j1trb0d09tt5qol7m96f9mtmtq5f1cp1uo@4ax.com...
    > >The folder properties dialog in Windows Explorer and the FileSystem
    object
    > >both on a Windows Server 2003 system doesn't provide accurate counts of
    the
    > >number of files and subfolders in a parent folder.
    > >
    > >This is a huge suprise to me that the Windows Explorer folder properties
    > >dialog is unreliable.
    > >
    > >When the length of a file path is at or near the maximum length of 248
    for
    > >the file path and 260 for the fully qualified path name, Windows Explorer
    > >produces a garbage number that can be off by thousands of files.
    > >
    > >What tool can we use to get an *authoritative* count of the number of
    files
    > >and subfolders in a parent folder? robocopy is the only utility that
    seems
    > >to provide an accurate number.
    >
    > The command prompt DIR seems to be able to manage it.
    >
    > It is very odd that Explorer can list the file, but nothing much else.
    >
    > Dave

    Michael Herman \(Parallelspace\) Guest

  2. Similar Questions and Discussions

    1. Windows Explorer (and FSO) doesn't know how to reliably count files and subfolders - other options?
      "Michael Herman (Parallelspace)" <mwherman@parallelspace.net.no#$#spam> wrote in message news:Ozw2NkyREHA.1392@TK2MSFTNGP09.phx.gbl... the as...
    2. Windows Explorer opens PDF, clicking EXIT causes explorer "error" message after viewing
      I can view the PDF pages from within the Winows Explorer "web browser" but if I try and close the window by using the EXIT, clicking on the X in the...
    3. Why are some files BLUE in Windows Explorer?
      Can anyone help me with this one? Thanks. =)
    4. Explorer Search (F3) find a text/keyword in files is defect in Windows XP SP1 und Windows 2003 Server
      Is this issue known? And do anybody knows, if there is an Microsoft update is available? (no hint in Microsoft Updates) Or do anybody know a real...
    5. program files not letting me see subfolders and files
      I have my winxp computers networking but computer A will not let me open program file folder on computer B. The drive c: is shared and I can view...
  3. #2

    Default Re: W23: Windows Explorer (and FSO) doesn't know how to reliably count files and subfolders - other options?

    >DIR directory /S fails and never produces a result.

    It worked fine for me. Here's what I tried...

    1. Create a folder (C:\N1)
    2. Using Explorer I created a txt file in that folder.
    3. Edited the file so that it wasn't 0 bytes long.
    4. Renamed the file to the maximum length that Explorer allowed.
    At this point everything works fine.
    5. Renamed the folder to C:\N12
    At this point Explorer can't display the properties of the file.
    However DIR /S from the root of the drive can still output the file
    name and its size.
    >I have a couple CMD files that re-creates a sample folder and file
    >hierarchy.
    Can you post the contents of one - just the bare minimum to reproduce
    the issue?

    Dave
    --
    MVP VC++ FAQ: [url]http://www.mvps.org/vcfaq[/url]
    David Lowndes Guest

  4. #3

    Default Re: W23: Windows Explorer (and FSO) doesn't know how to reliably count files and subfolders - other options?

    >Here you David,

    Michael,

    I'm sorry, but I can't see the wood for the trees in that lot - a
    really *really* simple example would be better to illustrate the
    point, there's no need to create monster cmd files. It's difficult to
    know what I'm supposed to be checking in the plethora of stuff those
    command files create - I only do this in my spare time.

    Dave
    David Lowndes Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139