VBScript Registry Question
Results 1 to 2 of 2

Thread: VBScript Registry Question

  1. #1
    Senior Member
    Join Date
    Nov 2002
    Posts
    186

    VBScript Registry Question

    This is a coding question, not actually code to review, but I thought this was the best place to ask. Obviously VBScript can be used to manipulate the Windows Registry using RegRead, RegWrite and RegDelete, but it is possible to test for the existence of a key before reading it? I am trying to detect the service pack level of a windows install but if the user is running Windows XP without SP1, it simply does not have the key CSDVersion under HKLM\Software\Microsoft\Windows NT\Current Version and this causes my script to crash. Does anyone have any idea how I can get around this? Thanks!

    -Al

  2. #2
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Posts
    2,716
    I came in to the world with nothing. I still have most of it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides