..


Sponsored Links

Verify the installation of Win XP Service Pack 2 with VBScript

Article written by Luca Ruggiero

In Article Verify the installation of Service Pack 2 for Win XP with JavaScript we have seen, with client-side Javascript, it is possible to verify the installation of Service Pack 2 for Windows XP Professional and we have explained all the pros and cons the well-known update from Microsoft.

Let us now see how to do the same occurs with client-side VBScript. An example of code:






 Dim test_sp2







 test_sp2 = window.navigator.userAgent







 If InStr (test_sp2, "SV1") <> 0 Then



    



 'Education with Service Pack 2







 Else



    



 'Education without Service Pack 2







 End If



Again we go to retrieve the key and check if the userAgent value SV1 is included in it or not.

The utility also use VBScript to do this occurs there is in fact that happens to use the VB script on a Web page to create a menu, a control on form fields, etc and it is therefore necessary to use a single dell'SP2 language to verify the installation and, therefore, whether to execute a script or run one different, designed for the occasion.

In the same category ...
E-Learning
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
Visual Basic 6 (Course) Visual Basic 6 (Course)
Make Desktop Applications with VB6. From 39 €.
Sponsored Links