TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Edwards
from: Denis Tonn
date: 1996-11-11 17:41:00
subject: reboot

Original from  Paul Edwards  to Marcello Desantis on 11-03-1996
Original Subject: reboot

                         ---------------------------------------

 PE>> Can someone please send me code that will do a reboot(). Thanks
 PE>> + bye.  Paul. 
 
 RH> You have it: the standard OS/2 SETBOOT command!
 
 MD> SETBOOT requires the Boot Manager.
 
PE> I only have a bootmanager machine, but the target machine 
PE> does not necessarily have boot manager.  Can you tell me 
PE> which bit requires bootmanager?  Is it the "setboot" 
PE> executable that doesn't exist on a non-bootmanager machine, 
PE> or does the "setboot /b" do something wierd on a non-
PE> bootmanager machine?  If so, what does it do?

 I checked further, and SETBOOT.EXE seems to be installed on Warp 3 
Connect systems (and above) regardless of BM being installed or not. 
Many of my classes are taught on machines without a BM partition, and 
setboot.exe appears to still be installed on the systems. I have not 
tested previous systems (and I am assuming that the installers did not
specially add setboot.exe to the Connect install). 
 
 SETBOOT /B will not reboot the system unless a BM partition is 
detected. SETBOOT /IBD:x: (where x is the boot partition) will work 
regardless of a BM partition on the system or not. You have to be able
to pick up the partition for boot, but this is trivial on a system
without BM - it should always be C: .. What I do is to pick up the 
booted partition, and then fire off setboot /ibd:x: with the same 
letter.
 I suppose it is possible that the user could be using an alternative 
method of selecting a boot partition, and that the above will not work
with all systems.. Anybody know if the method used by different 
"multi-boot" systems would be totally incompatable with setboot? 


   Denis       

 All opinions are my very own, IBM has no claim upon them
. 
. 
.
--- Maximus/2 3.01
* Origin: T-Board - (604) 277-4574 (1:153/908)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 153/908 8086 800 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.