Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to detect FreeDOS kernel from Turbo Pascal program? (Developers)

posted by Oso2k, 15.01.2022, 00:24

> Hello,
>
> I am looking for a method of detection of running FreeDOS kernel from Turbo
> Pascal compiled program. Because under FreeDOS various shells can be loaded
> (for example FreeCOM can be replaced by 4DOS) this cannot be a method
> referring to simple shell call. What I need is to find if my Pascal program
> runs under FreeDOS kernel, regardless of the command interpreter used.
>
> For now I use ugly and dirty code of type "if exist {boot
> drive}\kernel.sys then RunningUnderFreeDOS" but this ugliness fails
> miserably when multiboot (and multikernel) configuration is working because
> while kernel.sys is present, it doesn't mean it is loaded.


http://www.ctyme.com/intr/rb-2711.htm

http://www.ctyme.com/intr/rb-2730.htm

 

Complete thread:

Back to the forum
Board view  Mix view
22749 Postings in 2119 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum