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
> 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
Regards,
Torgeir
> 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.