Results 1 to 3 of 3
  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2018

    Resolved [RESOLVED] Check if ProgID exists?

    How do I check if a given ProgID String exists in the registry using VBScript?
    Last edited by Samuel Venable; Mar 4th, 2018 at 12:50 AM.

  2. #2
    New Member mwildam's Avatar
    Join Date
    Feb 2000

    Re: Check if ProgID exists?

    HKCR? - Just search your registry for Word.Application for instance.
    But there are more options - if you are not an administrator then sometimes classes get registered under current user portion of registry. But I consider this usually as an installation error, if that happens.
    To read registry key you can use windows scripting shell object:
    Dim wsh
    set wsh = CreateObject("WScript.Shell")
    Dim regVal : regVal = wsh.RegRead("HKEY_CLASSES_ROOT\...")
    set wsh = Nothing
    Using VBS, Java, JavaScript

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2018

    Re: [RESOLVED] Check if ProgID exists?

    Thanks mwildam! That works perfectly for what I needed. Problem solved.

Posting Permissions

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


Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.