Rebooting from a Batch File with SMARTDRV.EXE LoadedLast reviewed: November 23, 1994Article ID: Q81607 |
The information in this article applies to:
SUMMARYIf a command that causes the computer to reboot is used in a batch file while SMARTDRV.EXE is loaded, the following command should precede the reboot command:
SMARTDRV.EXE /C MORE INFORMATIONSMARTDRV.EXE writes data to the disk in the background. Normally, the cache (or buffer) that contains this information is flushed when there is a brief pause in activity. However, in a batch file, there is no significant pause between commands, so it is not possible for SMARTDRV.EXE to flush its cache before a reboot command is given. This can result in data loss. To correct this problem, you must explicitly tell SMARTDRV.EXE to flush its cache. This is done by executing SMARTDRV.EXE with the /C parameter as shown above. For more information on a program that will reboot the computer from a batch file, query on the following words in the Microsoft Knowledge Base:
reboot and batch and jmp |
KBCategory: kbother kbinterop
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |