[futurebasic] Re: [FB] [FB3] [REPOST] Restarting the computer

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2002 : Group Archive : Group : All Groups

From: Ken Shmidheiser <k.shmidheiser@...>
Date: Thu, 9 May 2002 23:34:16 -0400
Brian asked:

>I am writing a program that needs to restart the computer when it is done
>with it's task.   How do I restart the computer?  Isn't there some command
>like CALL SHUTDWNSTART?  I tried this and it didn't work.

Try this:

//For pre-Carbon systems only

local mode
local fn ShutDwnStart
` DC.W $3F3C,$0002,$A895
end fn

fn ShutDwnStart

do
handleevents
until gFBQuit
end

OS X with its UNIX underpinnings is a different story.

Ken