| www.delorie.com/archives/browse.cgi | search |
| Date: | Fri, 16 Feb 2001 12:37:39 +0200 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | "ypwang" <ypwang AT sitechasia DOT com> |
| Message-Id: | <2427-Fri16Feb2001123739+0200-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 |
| CC: | djgpp AT delorie DOT com |
| In-reply-to: | <96iivg$ssn$1@mail.cn99.com> (ypwang@sitechasia.com) |
| Subject: | Re: Win2k vs Win NT4 -how to distinguish |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1010207084934 DOT 2148P-100000 AT is> <95sfgm$sne$1 AT pippin DOT nask DOT waw DOT pl> <96iivg$ssn$1 AT mail DOT cn99 DOT com> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "ypwang" <ypwang AT sitechasia DOT com> > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 16 Feb 2001 14:56:27 +0800 > > Run the internal-command "ver" and you will get the currrent version, If we > can use this method to get the output then we can easily point out which > platform is running. Let me reiterate the problem. The issue is how do library functions detect W2K. Not application programs, _library_ functions. It is IMHO inappropriate for a general-purpose library function to invoke an external program (the shell, which implements the VER command), especially since W2K is known to not like nested programs too much. I agree that, for an application code, running VER is a solution, along a few others which where mentioned in this thread.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |