Auslogics Disk Defrag Copyright (C) 2006-2008 Auslogics Pty Ltd. Visit www.auslogics.com for updates and other computer optimization software. Description: consolidates fragmented files on local disks to improve system performance Syntax: cdefrag.exe [-f] [-quiet] [-bk] [-log:"path"] cdefrag.exe -c [-f] [-quiet] [-bk] [-log:"path"] cdefrag.exe -path:"path" [-f] [-quiet] [-bk] [-log:"path"] cdefrag.exe -? Parameters: Value 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). -? Displays this help information. Hints: To run Disk Defrag from the Task Scheduler on Windows Vista without the UAC prompt, you must select the "Run with highest privileges" check box in "Security options" panel on "General" tab in "Create Task" dialog box of the Task Scheduler. Error Codes: 0 - Success. 1 - Error defragmenting of 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. 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 file "C:\WINDOWS\Driver Cache\i386\driver.cab" cdefrag -path:"C:\Program Files\Microsoft Office" Defragment folder "C:\Program Files\Microsoft Office" 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 file C:\logs\defraglogYYYYMMDDHHMMSS.HTML