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

Windows 9x SO Version

0 views
Skip to first unread message

Reginaldo

unread,
Oct 22, 2001, 3:23:10 PM10/22/01
to
Hi,

In Windows NT platform the command "set" return the variables about the OS
installed. The command "Set OS" returns the type of OS installed.
In Windows 95/98 this function don't return the OS version, exist another
command available?

I deploy the script and I need this information.

Thanks a lot!
Reginaldo


Bill Stewart

unread,
Oct 23, 2001, 12:29:00 PM10/23/01
to
"Reginaldo" <rcar...@hotmail.com> wrote in message
news:#0lyA8yWBHA.2176@tkmsftngp05...

> In Windows NT platform the command "set" return the variables about the
> OS installed. The command "Set OS" returns the type of OS installed. In
> Windows 95/98 this function don't return the OS version, exist another
> command available?

You need an executable that returns an exit code that represents the
installed OS.

For example, I wrote an executable that returns the following info:

OS model (Win95, Win98, Windows Me, NT 4.0, 2000, XP)
NT/2K/XP service pack level
NT/2K/XP "product type" (Workstation, Server, domain controller)

It returns an exit code (ERRORLEVEL) suitable for batch files.

http://oregonclassifieds.net/utilities/files/tools1.zip


Torgeir Bakken

unread,
Oct 23, 2001, 12:52:09 PM10/23/01
to
If you only want to differ W9x from NT\W2k\WXP, the existence or not of the
evironment variable OS will tell you that. If you want more detailed OS version
information, you can read that from registry.

Regards,
Torgeir

Bill Stewart

unread,
Oct 26, 2001, 10:35:35 AM10/26/01
to
"Torgeir Bakken" <Torgeir.B...@hydro.com> wrote in message
news:3BD5A039...@hydro.com...

> If you only want to differ W9x from NT\W2k\WXP, the existence or not of
> the evironment variable OS will tell you that. If you want more detailed
> OS version information, you can read that from registry.

My osver.exe utility does this as a single console mode executable that
returns an exit code that represents the OS version/family. It also
supports arguments to return the service pack level and whether the machine
is a workstation/server/domain controller.


0 new messages