Windows XP Community - XPHeads



Driver Scanner

Re: defragmenter won't defrag some files, esp outlook pst files

microsoft.public.windowsxp.help_and_support




Recommended Fix - Fix Vista Errors and Optimize Performance


Driver Scanner 2009 - Free Scan Now
Reply
  #1 (permalink)  
Old 03-17-2009, 08:14 AM
bijoy
 
Posts: n/a
Re: defragmenter won't defrag some files, esp outlook pst files

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/s.../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 Wrote:
> 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|
+-------------------------------------------------------------------+

--
bijoy
------------------------------------------------------------------------
bijoy's Profile: http://forums.techarena.in/members/bijoy.htm
View this thread: http://forums.techarena.in/windows-x...ort/851299.htm

http://forums.techarena.in

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-17-2009, 08:38 AM
Leonard Grey
 
Posts: n/a
Re: defragmenter won't defrag some files, esp outlook pst files
"Yes it is true that the outlook.pst files never get defragmented."

That's because in Outlook, the term "defragment" has been replaced by
"compact." Two names for the same thing. To compact your Outlook data
files (.pst) go to Control Panel > Mail > Data Files button > select a
data file and click on Settings.
---
Leonard Grey
Errare humanum est

bijoy wrote:
> 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/s.../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 Wrote:
>> 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|
> +-------------------------------------------------------------------+
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:57 AM.




Recommended Download



Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

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