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 Laaca Homepage, Czech republic, 15.01.2022, 11:09
(edited by Laaca on 15.01.2022, 11:23)

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.

Firstly call simply "ver".
Then, if it contains string "FREECOM" (after capitalization) call "ver /r" and analyse the output.

---
DOS-u-akbar!

 

Complete thread:

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