Auslogics Disk Defrag Free comes with a command line tool, 'cdefrag.exe'.
It can be found in the program folder once you download and install the program.
Syntax | cdefrag.exe cdefrag.exe -c [-f] [-quiet] [-bk] [-log:"path"] cdefrag.exe -path:"path" [-f] [-quiet] [-bk] [-log:"path"] |
Parameter | Description |
< volumes > | One or more drive letters of the volumes to be defragmented. |
-c | Defragments all local disks on this computer. |
-path | Defragments file or folder (recursively into subfolders). The full path to file or folder should be specified. |
-f | Forces defragmentation of the disk when free space is low. |
-quiet | Does not display any information on the screen. |
-bk | Defragments with minimum CPU usage. |
-log | Outputs log in HTML format. If only a folder is specified, file is generated in format defraglogYYYYMMDDHHMMSS.HTML. |
-requestUAC | Request UAC (only for Windows Vista). |
-a | Analyzes specified disks. |
-o | Defragments and optimizes specified disks, consolidates free space. |
-dt | Removes temporary files before defragmentation. |
-off | Turns off computer after defragmentation. |
-? | Displays help information. |
Examples |
cdefrag D: Defragment drive D: |
cdefrag c: d: e: Defragment drives C:, D: and E: |
cdefrag -c Defragment all local, non-removable drives. |
cdefrag -path:"C:\WINDOWS\Driver Cache\i386\driver.cab" Defragment the "driver.cab" file. |
cdefrag -path:"C:\Program Files\Microsoft Office" Defragment the "Microsoft Office" folder. |
cdefrag d: -f -log:"C:\logs\defrag.html" Force-defragment drive D: even when free space is low and save the report with details of defragmentation in file C:\logs\defrag.html |
cdefrag -c -quiet -bk -log:"C:\logs\" Defragment all supported drives without displaying any information and with minimum CPU usage. Save the defragmentation report to the C:\logs\defraglogYYYYMMDDHHMMSS.HTML file. |
cdefrag -a c: d: e: Analyze drives C:, D: and E: |
cdefrag -a -c Analyze all local, non-removable drives. |
cdefrag -o c: d: e: Defragment and optimize drives C:, D: and E: |
cdefrag -o -c Defragment and optimize all local, non-removable drives. |
cdefrag -c -dt Remove temporary files before defragmentation. |
Error Codes | Description |
0 | Success |
1 | Error defragmenting one or more disks. |
2 | Administrator access rights are required to defragment disks. |
3 | The command line parameters are invalid. |
4 | Defragmentation was cancelled by user. |
5 | Unsupported Windows version. |
6 | Error creating log file. |
7 | Another instance is already running. |
8 | Low free space on the disk. |
9 | The computer has been turned off or rebooted. |
Parameter | Description |
/SP- | Disables the "This will install... Do you wish to continue?" prompt at the beginning of Setup. Of course, this will have no effect if the DisableStartupPrompt [Setup] section directive was set to yes. |
/SILENT /VERYSILENT |
Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed, but the installation progress window is. When Setup is very silent, this installation progress window is not displayed. Everything else is normal, so for example, error messages during installation are still displayed, so is the startup prompt (if you haven't disabled it with DisableStartupPrompt or the '/SP-' command line option explained above). |
/SUPPRESSMSGBOXES | Instructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' and '/VERYSILENT'. The default response in situations where there's a choice is:
5 message boxes are not suppressible:
|
/LOG | Causes Setup to create a log file in the user's TEMP directory detailing file installation and [Run] actions taken during the installation process. This can be a helpful debugging aid. For example, if you suspect a file isn't being replaced when you believe it should be (or vice versa), the log file will tell you if the file was really skipped, and why. The log file is created with a unique name based on the current date. (It will not overwrite or append to existing files.) The information contained in the log file is technical in nature and therefore not intended to be understandable by end users. Nor is it designed to be machine-parseable; the format of the file is subject to change without notice. |
/LOG="filename" | Same as /LOG, except it allows you to specify a fixed path/filename to use for the log file. If a file with the specified name already exists it will be overwritten. If the file cannot be created, Setup will abort with an error message. |
/NOCANCEL | Prevents the user from cancelling during the installation process, by disabling the Cancel button and ignoring clicks on the close button. Useful along with '/SILENT' or '/VERYSILENT'. |
/DIR="x:\dirname" | Overrides the default directory name displayed on the Select Destination Location wizard page. A fully qualified pathname must be specified. May include an "expand:" prefix which instructs Setup to expand any constants in the name. For example: '/DIR=expand:{pf}\My Program'. |
/GROUP="folder name" | Overrides the default folder name displayed on the Select Start Menu Folder wizard page. May include an "expand:" prefix, see '/DIR='. If the [Setup] section directive DisableProgramGroupPage was set to yes, this command line parameter is ignored. |
Parameter | Description |
/SILENT /VERYSILENT |
When specified, the uninstaller will not ask the user for startup confirmation or display a message stating that uninstall is complete. Shared files that are no longer in use are deleted automatically without prompting. Any critical error messages will still be shown on the screen. When '/VERYSILENT' is specified, the uninstallation progress window is not displayed. |
/SUPPRESSMSGBOXES | Instructs the uninstaller to suppress message boxes. Only has an effect when combined with '/SILENT' and '/VERYSILENT'. See '/SUPPRESSMSGBOXES' under Setup Command Line Parameters for more details. |
/LOG | Causes Uninstall to create a log file in the user's TEMP directory detailing file uninstallation and [UninstallRun] actions taken during the uninstallation process. This can be a helpful debugging aid. The log file is created with a unique name based on the current date. (It will not overwrite or append to existing files.) The information contained in the log file is technical in nature and therefore not intended to be understandable by end users. Nor is it designed to be machine-parseable; the format of the file is subject to change without notice. |
/LOG="filename" | Same as /LOG, except it allows you to specify a fixed path/filename to use for the log file. If a file with the specified name already exists it will be overwritten. If the file cannot be created, Uninstall will abort with an error message. |
Pour vous assurer d'obtenir la bonne clé de licence…
Quel programme avez-vous sur votre PC ?
Disk Defrag
Version du produit 11.0.0.2
Auslogics Disk Defrag Pro est la version avancée de Disk Defrag Free avec des fonctionnalités étendues, comme le placement de fichiers et des options de planification.
Obtenir une licence pour ce logicielDisk Defrag ULTIMATE
Version du produit 4.12.0.4
Anciennement connu sous le nom de Disk Defrag Pro et récemment rebaptisé Ultimate, ce programme offre tous les outils et options dont vous avez besoin pour une optimisation professionnelle et complète des disques durs et SSD.
En savoir plus sur la version ULTIMATE