Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WIN '95 DOS-BOX

0 views
Skip to first unread message

Stefan Auracher

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

How can I detect whether a program runs in a WIN95 DOS-BOX or not ?
I'm not interested in a Win3.X DOS-BOX Check.

Please MAIL to Stefan....@eikon.e-technik.tu-muenchen.de

A. Sinan Unur

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

in a win95 dos box, there is an environment variable called cmdline.
combining this with windir or winbootdir (this one is also win95
specific) should work.
--
Sinan

*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan...@cornell.edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

Bas Nedermeijer

unread,
May 18, 1997, 3:00:00 AM5/18/97
to

Stefan Auracher <Stefan....@eikon.e-technik.tu-muenchen.de>
wrote:

//--How can I detect whether a program runs in a WIN95 DOS-BOX or not ?
//--I'm not interested in a Win3.X DOS-BOX Check.

Just check the current windows version.

Call INT 02Fh/AX=01600h
if AL returns 04 and AX returns 00h then the program runs in a win '95
dos-box.


//--Please MAIL to Stefan....@eikon.e-technik.tu-muenchen.de

I hope this helped.

-------------------------------------------------------
Ned...@WorldOnline.nl
WWW: http://www.worldonline.nl/~nederm
AKA Mighty Research
Sig. version 1.05.934.352a build 7831


Simon Hosie

unread,
May 18, 1997, 3:00:00 AM5/18/97
to

A. Sinan Unur:

> in a win95 dos box, there is an environment variable called cmdline.

I think 4DOS offers the same thing.

0 new messages