|
This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com. Windows XP and DOS - Batch File to Determine Operating System VersionSUMMARY: Inside a batch file determine if the operating system is Windows NT, Windows 2000, Windows XP, or Windows 2003.
Many DOS commands in the 32-bit versions of Windows are similar but support different parameters or a few different commands. Thus, if you wish to write a batch file that can run on different types of machines, it may prove beneficial to determine the version of Windows on which the batch file is running. This way the batch file can execute commands appropriate to the operating system. |
Press the "print" button on your browser or select "File" - "Print" to print this tip. Then,
return to Windows XP and DOS - Batch File to Determine Operating System Version
Standard disclaimer applies - read http://malektips.com/disclaim.html.