Hello All,
Yes it is true that the outlook.pst files never get defragmented. Thus
Microsoft technet recommends a very small 100kb tool to complete the
incomplete task of defragmenting pst files. The tool is known as
contig.exe. At first, it might sound like some kind of a virus; but
then I assume it to be named after "contigous files" and so the name
contig.
It is a small DOS executable file not many know about.
You can follow the link below to get a better idea.
http://technet.microsoft.com/en-us/sysinternals/bb897428.aspx
Using Contig
Contig can be used to defrag an existing file, or to create a new file
of a specified size and name, optimizing its placement on disk. Contig
uses standard Windows defragmentation APIs so it won't cause disk
corruption, even if you terminate it while its running.
To make an existing file contiguous use Contig as follows:
Usage: contig [-v] [-a] [-q] [-s] [filename]
-v Use the -v switch to have Contig print out information about the
file defrag operations that are performed.
-a If you want to simply see how fragmented a file or files have
become, use the -a switch to have Contig analyze fragmentation.
-q The -q switch, which over-rides the -v switch, makes Contig run in
"quiet" mode, where the only thing it prints during a defrag run is
summary information.
-s Use the -s switch to perform a recursive processing of
subdirectories when you specify a filename with wildcards.
For instance, to defragment all DLLs under c:\winnt you could enter
"contig -s c:\winnt\*.dll".
To make a new file that is defragmented upon creation, use Contig like
this:
Usage: contig [-v] [-n filename length]
How it Works
Contig uses the native Windows NT defragmentation support that was
introduced with NT 4.0 (see my documentation of the defrag APIs for more
information). It first scans the disk collecting the locations and sizes
of free areas. Then it determines where the file in question is located.
Next, Contig decides whether the file can be optimized, based on free
areas and the number of fragments the file currently consists of. If the
file can be optimized, it is moved into the free spaces of the disk.
I hope it helped you guys...
For those of you who are lazy... I've also attached the tool for your
perusal.
Warm Regards,
Bijoy.
curious;3305532 said:
Please excuse, I posted on another windows board, but didn't realize it
didn't get much traffic. Here is my question-
When I defragment, my outlook files and some other large files 2gb +
will
not drfragment. I don't believe they are in use, and even when I
defrag at
boot time, they still do not defrag. Does anyone have a fix or
explanation
for this.
curious
+-------------------------------------------------------------------+
|Filename: Contig.zip |
|Download:
http://forums.techarena.in/attachment.php?attachmentid=7747|
+-------------------------------------------------------------------+