TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Murray Lesser
date: 1995-08-13 16:12:00
subject: Boot Drive From REXX

This is a check to make sure I haven't overlooked something obvious!

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

    Any words of wisdom would be appreciated.

          --Murray

___
 * MR/2 2.25 #120 * One printed manual is worth a thousand INF files

--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, Fairfax, VA: 703-385-4325 (1:109/347)
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: 109/347 716 3615/50 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™.