Microsoft DOS DATEDBLSPACEDEBUG Draft for Information Only
ContentMS DOS Command: DEFRAG.EXE
MS DOS Command: DEFRAG.EXEReference from Microsoft MS-DOS cmd help DescriptionReorganizes the files on a disk to optimize disk performance. Do not use this command when Windows is running. SyntaxDEFRAG [drive:] [/F] [/S[:]order] [/B] [/SKIPHIGH] [/LCD | /BW | /G0] [/H]
DEFRAG [drive:] [/U] [/B] [/SKIPHIGH] [/LCD | /BW | /G0] [/H]
Parameters
RemarksNetwork and INTERLNK drivesYou cannot use DEFRAG to optimize network drives or drives created with INTERLNK. Disk information reported by DEFRAG and CHKDSKDisk information that DEFRAG reports differs from information that CHKDSK reports. DEFRAG reports hidden and user files as one number; CHKDSK reports numbers for each type. DEFRAG counts the root as a directory; CHKDSK does not. DEFRAG does not count the volume label as a file; CHKDSK does. Start DEFRAG only from MS-DOSIf you start DEFRAG from a program such as Microsoft Windows, you may lose data. DEFRAG exit codesThe following list briefly describes the meaning of each DEFRAG exit code (ERRORLEVEL parameter):
You can use the ERRORLEVEL parameter on the IF command line in a batch program to process exit codes returned by DEFRAG. For an example of a batch program that processes exit codes, see the CHOICE command. ExamplesTo load DEFRAG into conventional memory and specify that DEFRAG sort files according to the date they were created, from latest created to earliest created, type the following command: defrag c: /f /sd- /skiphigh This example fully optimizes drive C, but slows DEFRAG. ©sideway ID: 110700152 Last Updated: 7/25/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019