Re: Too many files in one directory...
From: Jesse Gardner (ih8spam_at_badcrc.com)
Date: 09/24/04
- Next message: Lanwench [MVP - Exchange]: "Re: Printing Permissions"
- Previous message: Pat [MSFT]: "Re: Too many files in one directory..."
- In reply to: Pat [MSFT]: "Re: Too many files in one directory..."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 24 Sep 2004 15:24:25 -0600
Thanks, I was actually planning on doing that. I'm just waiting to hear
back from our developers to make sure they don't have any legacy
software that would be affected.
Thank you for your help!
-Jesse
Pat [MSFT] wrote:
> I would also suggest making sure that the the create 8.3 name is disabled
> (you may want to test that this doesn't break some app compatibility). This
> is a very common cause of perf problems in folders with a large number of
> files (esp. if the files have similar names).
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;121007
>
> Pat
>
> "Jerold Schulman" <Jerry@jsiinc.com> wrote in message
> news:12p5l0h8ivdi44i0dm1bb68lji40v8lvd9@4ax.com...
>
>>Really Rerally Final version:
>>
>>@echo off
>>if {%2}=={} @echo Syntax: ExcessivelyLargeNumberOfFiles.bat Folder1
>>Tolerance1
>>[Folder2 Tolerance2 ...]&goto :EOF
>>setlocal
>>:loop
>>if {%1}=={} goto finish
>>set folder=%1
>>set /a tol=1000000%2%%1000000
>>shift
>>shift
>>if not exist %folder% @echo Folder %folder% does NOT exist.&goto :loop
>>set subf=%folder%
>>call :testsub
>>for /f "Tokens=*" %%a in ('dir %folder% /b /ad /s') do (
>>set subf="%%a"
>>call :testsub
>>)
>>goto loop
>>:finish
>>endlocal
>>goto :EOF
>>:testsub
>>set /a num=0
>>for /f "Tokens=1-4" %%a in ('dir %subf% ^|Find " File"^|Find " bytes"') do
>>(
>>set /a num=1000000%%a%%1000000
>>)
>>if %num% LEQ %tol% goto loop
>>@echo %subf% %num%
>>goto :EOF
>>:finish
>>endlocal
>>
>>
>>
>>On Tue, 21 Sep 2004 16:55:25 -0600, Jesse Gardner <ih8spam@badcrc.com>
>>wrote:
>>
>>
>>>Here at work we have a recurring problem where our programmers have
>>>horrible file structure maintenance... (ie, we will get complaints
>>>about slowness and after troubleshooting everything under the sun, we
>>>will find a folder with >40,000 files in it. After cleaning it up
>>>things run smoothly again.)
>>>
>>>Do any of you know of a program or utility that will help you to search
>>>for excessively large numbers of files in a directory? (like xtree or
>>>ztree --Preferrably something better/gui)
>>>
>>>
>>>TIA!!!
>>
>>
>>Jerold Schulman
>>Windows: General MVP
>>JSI, Inc.
>>http://www.jsiinc.com
>
>
>
- Next message: Lanwench [MVP - Exchange]: "Re: Printing Permissions"
- Previous message: Pat [MSFT]: "Re: Too many files in one directory..."
- In reply to: Pat [MSFT]: "Re: Too many files in one directory..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|