TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Murray Lesser
from: Phil Crown
date: 1995-08-16 17:14:00
subject: Boot Drive From REXX

ML> I need to determine the current OS/2 boot drive (partition) from
 ML> within a REXX program.  The only foolproof solution I have found is an
 ML> external function that calls DosQuerySysInfo(5,5,&Buf,sizeof(Buff)),
 ML> where Buff is declared ULONG and will contain the partition number
 ML> after the call.  I have a feeling that merely looking for a volume
 ML> labeled "OS2" isn't good enough, what with all the boot-manager
 ML> aficionados that keep multiple versions of OS/2 on line.  I run a
 ML> single-OS system (Warp Red w/o Windows), so I really don't understand
 ML> what can and cannot be done with boot manager.  But, I dislike writing
 ML> utilities (even for my own use) that are limited by my own system

How about looking in the root directory of each drive for config.sys and
offer the user a menu to choose from.  This is how qvdm102 does it.

         ////
        (o o)
----oOO--(_)--OOo----   phil.crown{at}bluecafe.com | Fido 1:124/6108.2

___ Blue Wave/QWK v2.20

--- WILDMAIL!/WC v4.12 
* Origin: The Blues Cafe (214) 638-1186 8 Nodes Dallas Tx (1:124/8014.0)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 124/8014 8043 1 396/1 270/101 105/103 42 712/515 711/808 809 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™.