Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I get the above error message in a Windows batch file that tries to defrag two disks (Windows XP Professional SP3), on the second defrag. The first one works fine. The relevant code is:

echo My C: defrag started: %date% %time% > %logfile%
defrag C: /v 1>> %logfile% 2>&1
echo My C: defrag finished: %date% %time% >> %logfile%
echo My E: defrag started: %date% %time% >> %logfile%
defrag E: /v 1>> %logfile% 2>&1
echo My E: defrag finished: %date% %time% >> %logfile%

Google shows nothing helpful. Any ideas what is not working?

share|improve this question

2 Answers 2

Disclaimer: These suggestions are unlikely to help, but I was unable to find any useful information from Microsoft on this one.

[1] Try defragging drive C last.

[2] Check to see if you have Offline Files enabled. In the Windows Explorer menu, choose Tools, Folder Options. On the Offline Files tab, if they are enabled, try disabling them. If you need offline files, I guess this is not really a solution, but frankly the Windows Offline Files feature is a disaster anyway and I wouldn't trust it with a readme file.

share|improve this answer
    
I tried both of these at the same time and now it works. Thanks for the suggestions. –  d-coder Jul 9 '10 at 13:40
    
You're welcome. Now I'm wondering which one fixed the problem. <grin> –  boot13 Jul 10 '10 at 5:33

I found that rebooting fixed this problem for me. I had applied updates and was not prompted to reboot yesterday, perhaps that was related. After the reboot today all is well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.