Rebooting from a Batch File with SMARTDRV.EXE Loaded

This article has been archived. It is offered "as is" and will no longer be updated.
If a command that causes the computer to reboot is used in a batchfile while SMARTDRV.EXE is loaded, the following command shouldprecede the reboot command:
More information
SMARTDRV.EXE writes data to the disk in the background. Normally, thecache (or buffer) that contains this information is flushed when thereis a brief pause in activity. However, in a batch file, there is nosignificant pause between commands, so it is not possible forSMARTDRV.EXE to flush its cache before a reboot command is given. Thiscan result in data loss. To correct this problem, you must explicitlytell SMARTDRV.EXE to flush its cache. This is done by executingSMARTDRV.EXE with the /C parameter as shown above.

For more information on a program that will reboot the computer from abatch file, query on the following words in the Microsoft KnowledgeBase:
reboot and batch and jmp
3.10 3.1 3.11 SMARTDRV.SYS win31 winmem

Article ID: 81607 - Last Review: 01/10/2015 10:53:56 - Revision: 4.0

  • kbnosurvey kbarchive KB81607