Ask a Question related to Windows Server, Design and Development.
-
nikos #1
Re: 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> The folder properties dialog in Windows Explorer and the FileSystem object
> both on a Windows Server 2003 system doesn't provide accurate counts ofas always, a simple workaround is to use FindFirst/Next but using the 8.3> 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.
>
version of the pathnames so that you never exceed the 260 chars limit
GetShortPathName may help but itself has a limit of 260 chars, so you may
need to write your own
---
[url]www.netez.com/2xExplorer[/url]
nikos Guest
-
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. ... -
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... -
Why are some files BLUE in Windows Explorer?
Can anyone help me with this one? Thanks. =) -
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... -
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... -
Michael Herman \(Parallelspace\) #2
Re: Windows Explorer (and FSO) doesn't know how to reliably count files and subfolders - other options?
It's extremely odd that in the current Windows o/s that there isn't a
trustworthy way of getting an accurate count of the files and subfolders in
a parent folder.
Michael.
"nikos" <umeca74@hotmail.com> wrote in message
news:%23Y5lEANSEHA.556@TK2MSFTNGP10.phx.gbl...object> "Michael Herman (Parallelspace)" <mwherman@parallelspace.net.no#$#spam>
> wrote in message news:Ozw2NkyREHA.1392@TK2MSFTNGP09.phx.gbl...> > The folder properties dialog in Windows Explorer and the FileSystemfor> the> > both on a Windows Server 2003 system doesn't provide accurate counts of> > 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 248Explorer> > the file path and 260 for the fully qualified path name, Windows>> > produces a garbage number that can be off by thousands of files.
> >
> as always, a simple workaround is to use FindFirst/Next but using the 8.3
> version of the pathnames so that you never exceed the 260 chars limit
>
> GetShortPathName may help but itself has a limit of 260 chars, so you may
> need to write your own
>
> ---
> [url]www.netez.com/2xExplorer[/url]
>
>
Michael Herman \(Parallelspace\) Guest
-
Michael Herman \(Parallelspace\) #3
Re: Windows Explorer (and FSO) doesn't know how to reliably count files and subfolders - other options?
robocopy from the Windows Resource Kit appears to be the only Microisoft
tool that provides a trustworthy count of the files in a hierarchy of a
parent folder.
Use the /L option to cause robocopy to run without actually copying
anything. This is the fastest way to get the stastics produced when
robocopy finishes.
Michael.
"Michael Herman (Parallelspace)" <mwherman@parallelspace.net.no#$#spam>
wrote in message news:Ozw2NkyREHA.1392@TK2MSFTNGP09.phx.gbl...the> The folder properties dialog in Windows Explorer and the FileSystem object
> both on a Windows Server 2003 system doesn't provide accurate counts offiles> 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.
>
> Same issue with the Filesystem object.
>
> What tool can we use to get an *authoritative* count of the number ofseems> and subfolders in a parent folder? robocopy is the only utility that> to provide an accurate number.
>
>
> --
> Michael Herman
> Parallelspace Corporation
> Developers of Advanced Business Collaboration Solutions for Microsoft
> SharePoint, Microsoft Live Communications Server and Groove Workspace
>
> Portal and Content Migration Solution Specialists:
> [url]http://www.parallelspace.net/sharepoint[/url]
> SharePoint Migration Knowledge Center:
> [url]http://groups.yahoo.com/group/sharepointmigration[/url]
>
>
>
>
Michael Herman \(Parallelspace\) Guest
-
Torgeir Bakken \(MVP\) #4
Re: Windows Explorer (and FSO) doesn't know how to reliably countfiles and subfolders - other options?
Michael Herman (Parallelspace) wrote:
Hi> robocopy from the Windows Resource Kit appears to be the only Microisoft
> tool that provides a trustworthy count of the files in a hierarchy of a
> parent folder.
>
> Use the /L option to cause robocopy to run without actually copying
> anything. This is the fastest way to get the stastics produced when
> robocopy finishes.
Info and download link for the latest version of robocopy.exe here:
[url]http://groups.google.com/groups?selm=4036844E.EF9F733A@hydro.com[/url]
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
[url]http://www.microsoft.com/technet/community/scriptcenter/default.mspx[/url]
Torgeir Bakken \(MVP\) Guest



Reply With Quote

