A. A new utility from SavillTech, CmdInfo sets error level values depending on the Service Pack version of the client machine, depending on the results different actions can be taken.

CmdInfo can be downloaded from http://www.savilltech.com/download/cmdinfo.zip.

CmdInfo can also perform actions depending on the OS version, installation type. Below is an example of usage to detect SP version in a logon script:

@ECHO OFF<br><br>                              CMDINFO.EXE /sp<br>                              IF ERRORLEVEL 5 GOTO SP5<br>                              IF ERRORLEVEL 4 GOTO SP4<br>                              IF ERRORLEVEL 3 GOTO SP3<br>                              IF ERRORLEVEL 2 GOTO SP2<br>                              IF ERRORLEVEL 1 GOTO SP1<br>                              IF ERRORLEVEL 0 GOTO SP0<br><br>                              :SP5<br>                              ECHO Service Pack 5 is installed on this NT computer.<br>                              ECHO No further upgrades are necessary.<br>                              GOTO END<br><br>                              :SP4<br>                              ECHO Service Pack 4 is installed on this NT computer.<br>                              ECHO Press any key to install Service Pack 5...<br>                              PAUSE &gt; NUL<br>                              rem Let's assume drive X: is mapped to a sharepoint...<br>                              rem X:\SP5\UPDATE\UPDATE.EXE -u -f -o<br>                              GOTO END<br><br>                              rem (etc. ...)<br><br>                              :END<br>                              EXIT