You can use the task plan or the at. EXE command to complete the fragmentation in the task plan. Next, I will take the C drive as an example at a.m.. The specific operation steps are as follows:
1. Open notepadProgram, Input: defrag.exe C:-v-F> C: \ Defrag-D.LOG
Explanation: Use the defrag.exe command to sort out the C drive, output detailed results, and save the results to the C: \ Defrag-D.LOG in redirection mode.
2. Save the notepad file as c: \ Defrag-D.bat, note that the file suffix is. bat.
3. Open Task Scheduler -- add Task Scheduler -- click tour -- select C: \ Defrag-D.bat ".
4. Enter the task name to set the frequency of executing the task.
5. Set the task execution start time and date, enter the Administrator account and password, and click "OK" to exit the menu.
Tom Zhang Yiping Online Technical Support Engineer: Microsoft Global Technical Support Center