Rebooting from a Batch File with SMARTDRV.EXE Loaded

Last reviewed: November 23, 1994
Article ID: Q81607
The information in this article applies to:
  • Microsoft Windows operating system versions 3.1, 3.11

SUMMARY

If 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 INFORMATION

SMARTDRV.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
KBSubcategory: win31
Additional reference words: 3.10 3.1 3.11 SMARTDRV.SYS win31 winmem


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 23, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.