Found this at home.
.model
small
.data restart label dword db 4 dup (?) .code main: mov ax,@data mov ds,ax mov bx,-1 ; segment CS:FFFF mov es,bx mov bx,3 mov dx,word ptr es:[bx] ; offset 0003 mov bx,1 mov ax,word ptr es:[bx] ; offset 0001 mov word ptr restart+2,dx ; indicate the restart address mov word ptr restart,ax call dword ptr restart ; do reboot by restart address end main end See if its any use.
Dave.
----- Original Message -----
From: Jeremy Coulter
Sent: Wednesday, 25 October 2000 07:54
Subject: [DUG]: Rebooting a computer in Pascal HI all.....this is
not really a DELPHI question but rather T/Pascal question.....which in light of
the recent Linux discussions in not really
off-topic....hehehehe
What I was wondering
is, how do you execute anotehr app. from wihting T/Pascal, and how do you
reboot a computer within T/Pascal ?
Can anyone help
?
Cheers,
Jeremy
Coulter
|
- [DUG]: Rebooting a computer in Pascal Jeremy Coulter
- RE: [DUG]: Rebooting a computer in Pascal Patrick Dunford
- RE: [DUG]: Rebooting a computer in Pascal Dave
- RE: [DUG]: Rebooting a computer in Pascal David O'Brien
- RE: [DUG]: Rebooting a computer in Pascal vss
- Re: [DUG]: Rebooting a computer in Pascal Neven MacEwan
- Re: [DUG]: Rebooting a computer in Pascal vss
- Re: [DUG]: Rebooting a computer in Pascal Neven MacEwan
- Re: [DUG]: Rebooting a computer in Pascal Nello Sestini
- RE: [DUG]: Rebooting a computer in Pascal Jeremy Coulter
- RE: [DUG]: Rebooting a computer in Pascal Stephen Barker