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 mceric, Germany, 15.01.2022, 12:29

> The DOS call proposed by McEric certainly works but I recommend to use a
> shell call. The "ver" command is reliable and the format should be
> standardised even through various alternate command interpretters.

I disagree. I am not aware of any standard format for the text returned by a VER shell command in the DOS wild west.

Also, calling the shell and interpreting the results is a lot more overhead than calling a well-documented int 21.30 kernel interface or even a less documentet FreeDOS kernel version string interface. Also note that only FreeCOM, but not non-FreeDOS shells, is able to include the kernel version string in the VER /R output. The normal VER output only shows the version of FreeCOM, not the version of FreeDOS, and you can use FreeCOM with any version of DOS, possibly not FreeDOS at all.

By the way, I am curious why the Turbo Pascal program wants to know whether a FreeDOS kernel is active, does it need any special workarounds? Or does it provide extra features that you want to detect to be present?

---
FreeDOS / DOSEMU2 / ...

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 235 users online (0 registered, 235 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum