2006-03-02

Reboot your DOS machine through command-line

Running Dos is no problem, but sometimes you want to reboot your system, use it in a batch-file or so, when you can't press CTRL+ALT+DEL.

Then you can use this: start
debug


Then enter these lines:
n reboot.com
rcx
12
a 100
mov ax,40
mov bx,72
mov cx,1234
mov ds,ax
mov [bx],cx
jmp ffff:0000

w
q

Note the empty line prior to the w (write). This indicates to press ENTER twice (once to close the line
jmp ffff:0000
and once to close the Assembly-modus (started at the line
a 100


This procedure will produce a reboot.com executable which should reboot your DOS-computer.

0 Comments:

Post a Comment

<< Home