On 9/28/05, alan smith wrote: >I was asked....while running under DOS command mode ....is >there a way to actually shut down the computer? In windows of >course, you command it to shut down so there is a bios interface >going on, but wonder if it can happen using a batch script or >something while in DOS. I think this isnt just a command >window, but actually booting into DOS rather than windows. If this is actually DOS, not just a command window, then there is no need for a shutdown command. If the computer is not actively accessing the drive, you can shut it off at any time (modulo SMARTDRV write buffering). Interrupt 18 is "goto ROM BASIC" on the original IBM-PC, and is often "BOOT SYSTEM" on clones. So, build yourself a little program via DEBUG: a int 18 { press Enter on a blank line } r bx 0 r cx 2 n rebootit.com w q Then, to shutdown the system at any time, use the two commands (you can put them in a .BAT file for convenience): smartdrv -r rebootit Bill -- Psst... Hey, you... Buddy... Want a kitten? straycatblues.petfinder.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist