Through the program contig.exe you can defragment a specific file such as "Outlook.pst" that usually grow up and defragmented. Save the contig.exe or contig64 file.exe in the same folder as your "outlook.pst" file. If you want, you can create a .bat file in the "Notes" by right click on the background of the folder where the file is located and select – New – Text document.
Contig is command line tool that defragments a single file
For example, type in a text file.
@echo off echo ...please wait.
contig –v *.pst > defraglog.txt call defraglog.txt
Save the file with an appropriate name <filnamn.bat>, t.ex. defrag-allpst.bat
it must be a .bat file. Double-click the file you saved, defrag-allpst.bat
and all pst files in the folder become defragmented instead of defragmenting the entire hard drive. Log file ”defraglog.txt” opens when the process is completed.
Delfragmentera an entire folder with Context Menu
With a simple addition to the registry, you can use it to defragment an entire folder, by right-clicking on the folder and choose ”Contig Defrag Folder”. This will open a command prompt and run contig.exe and defragment the folder you selected.
For this to work, you need to download and install contig.exe or contig64.exe, copy it to the folder: C:\windows\system32
Open a text editor such as. ”Notes” and paste the following text:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\contig]
@="Contig Defrag Folder"
[HKEY_CLASSES_ROOT\Directory\shell\contig\command]
@="cmd.exe /k contig.exe \"%L\\*.*\" -v -s"
Save the text file such as. ”contig-folder.reg” and then double-click the file to add commands to the Windows Registry. Cloudy!
You can now select a folder in the explorer, right click on it and select > ”Contig Defrag Folder”.
Recommended!
Link: Sysinternal – contig