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).
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.