Command line for defrag windows xp




















You can't schedule a defrag using Task Scheduler, but you can do it from a batch file. However, there's also a command line version of this utility, called Defrag. To do so, create a batch file that runs Defrag.

In this command, x is the drive letter of the hard disk you want to defragment, and parameter is one of three optional settings that you can use to configure Defrag:. Track the progress of a running operation for a given volume. An instance can show progress only for a single volume. To see progress for another volume, launch another instance. Perform free space consolidation, moves free space towards the end of the volume even on thin-provisioned volumes.

On tiered volumes, consolidation is performed only on the Capacity tier. Tier optimization would run for at most n seconds on each volume. The specified file contains the list of files to be optimized. Run the operation on each volume in parallel in the background.

Be respectful, keep it civil and stay on topic. We delete comments that violate our policy , which we encourage you to read.

Discussion threads can be closed at any time at our discretion. Defrag Windows from the Command Prompt Improve the performance of XP and Vista--at least a little bit--by running its built-in disk defragmenter with your choice of command switches.

Dennis O'Reilly. May 7, a. Vista's Disk Defragmenter utility is a no-frills affair. Microsoft XP's version of the Disk Defragmenter isn't much more functional, although it does give you a little more graphical feedback about the state of your drives. Type defrag? Microsoft For example, to defrag all your Vista volumes regardless of fragment size and when there's less than 15 percent free space, enter this line at the command prompt and then press Enter: defrag -c -w -f The utility will display a report on the selected volumes prior to beginning the defragmentation.

Log in Social login does not work in incognito and private browsers. Please log in with your username or email to continue. No account yet? Create an account. Edit this Article. We use cookies to make wikiHow great. By using our site, you agree to our cookie policy. Cookie Settings. Learn why people trust wikiHow. Download Article Explore this Article methods.

Tips and Warnings. Related Articles. Author Info Last Updated: April 28, Understanding Defragmentation. Know why a hard drive gets fragmented. When a hard drive is freshly formatted, the system files are located at the beginning of the drive, and the rest is a large block of free space. This space is optimally filled as new data is added to the drive.

As files are altered, deleted, and moved around the hard drive, pieces of data and small blocks of free space get left behind. Learn how fragmentation affects performance. As the amount of fragments increase in the drive, performance starts to deteriorate. The drive will take longer to find files, and free space on the drive will be misreported. Know how to prevent fragmentation.



0コメント

  • 1000 / 1000