Yes, Matt ..
I simply posted the update on the deal as best I can see things
from my little corner of the world! That's all...
------------------
Mike Luther
[email protected]
Announcement
Collapse
No announcement yet.
Detecting Windows
Collapse
X
-
-
Although I have a couple of copies of OS/2 2.x floating around (boxed, complete), I've never actually installed OS/2 to be able to comment on any aspect of OS/2 with PB/DOS. Sorry.
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment:
-
Please note that if the focus of this thread gets off into the
checking for all op systems large and small, a rock may have
been tbrown, of late, into the OS/2 pond...
It's just come to light that instead of reporting the operating
system to be, I think "2" or whatever it was, there may be a
chance that with the shift from the Warp 4 kernel in FIXPACK 12,
to the new 'universal' WSeB kernel Warp 4.5 with FIXPACK 13, it
may be that you'll get a report of "20.5" ..
There is a rather large discussion now on-going about various
things that were done to FDISK and so on as part of this, and
that got broke in FP 11 and FP 12 that had to be redone. In
mangling all this through the discussion groups, it's now out
that formatting a partition under FDISK for FP 14, but maybe
not 15, dunno yet .. will product the "20.5" figure!
I've posted asking questions as to what will happen if we use
the routines we had posted earlier in another thread on this in
the PB Forum to determine the operating system? So far, I've no
answer. Nor do I have any box converted to the 4.5 kernel and
FP 13 up yet to even test this. Too much still broken for me to
even begin thinking of doing that...
Just the comment for the few that might need the information here.
------------------
Mike Luther
[email protected]
Leave a comment:
-
The KISS method:
Code:IF ISTRUE BIT(pbvHost,8) OR UCASE$(ENVIRON$("OS")) = "WINDOWS_NT" THEN IsWindows% = -1
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment:
-
By checking bit 8 of the pbvHost internal variable. However, this method does not detect the presence of Windows NT or Windows 2000 (there is, I understand, no official way for a DOS application to check for these host OSs).
If you are interested, there is some source code in the following post for detecting host OSs from DOS: Determine OS platform and version from DOS.
Leave a comment:
-
Detecting Windows
How can I detect if Windows is loaded ?
------------------
Tags: None
Leave a comment: