Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to verify Operating System?

Status
Not open for further replies.

MEGUIA

Programmer
Sep 26, 2001
62
PR
Hi

I'm using a batch file to install a silent program in the computers. How do I check o verify with a DOS command the kind OS of the machine?. I have to do it this way so the user's don't complained. Any advice would be great. Thank you.
 
The closest thing that I can think of is the "ver" command. If you run under Windows, it will return the value for that version of Windows, not the underlying DOS (if Win 3.x 9x).

Rick
 
How about....

DO CASE
CASE _DOS
* do the DOS thing
CASE _WINDOWS
* do the Windows thing
CASE _MAC
* do the MAC thing
CASE _UNIX
* sign up for personality course
ENDCASE

HTH - xBaseDude
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top