You say you'd defragment your hard drive if only doing so weren't so time-consuming?

It's always best to defrag a disk when it's not in use.

To set up Windows to defrag a drive automatically at such a time, start by opening Notepad or another text editor, and type defrag.exe followed by a space, the drive letter, and a colon.

A drive that's low on disk space may balk at defragging, so type a space and -f to force Windows to defrag it anyway. Windows can also generate a report on the defrag when it's done: Type a space and -v to get all the details available. Next, enter > (a greater-than symbol), followed by the path to a text file that will log the results. (Note: If a text file of that name in that location already exists, it will get overwritten.) Be sure to place quotation marks around your path if it contains any spaces, or if It uses long file or folder names.

So after all that, your command line might look like this: defrag.exe c: -f -v >"e:\doc\defrag report.txt" (your path and file name may differ, of course). Finally, press .

If you want to defrag more than one drive, create a command line for each one, changing the drive letter and the file name and path as necessary. When you're done, choose File, Save, and save the file to a convenient location. Make sure to use the .bat or .cmd file extension.

Now any time you want to defragment the drives, just double-click the .bat or .cmd file you created. (Or drag the file's icon from Windows Explorer or any folder window and drop it onto your Start menu to create a shortcut there.)

Share this

Related Posts

Next Post »

Post Your Comments Below: