Solved

Is there a way to check if a codec is already installed?

Posted on 2003-12-10
2
170 Views
Last Modified: 2010-05-03
Do any of you experts know if there is a way to check if a certain codec is already installed?
0
Comment
Question by:John Account
2 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 500 total points
ID: 9917875
Codecs are usually dll's so just check if the dll  is there

use this

Public Function FileExists(filename As String) As Boolean
    FileExists = (Dir(filename, vbNormal Or vbReadOnly Or vbHidden Or vbSystem Or vbArchive) <> "")
End Function

Private Sub Command1_Click()
    If FileExists("C:\Config.sys") Then
        MsgBox "Config.sys is available"
    Else
        MsgBox "Sorry Can't find Config.sys"
    End If
End Sub
 
0
 

Author Comment

by:John Account
ID: 9918048
Thank you there, Kind Sir. That was a most excellent solution! Kudos to you...and a whopping 500 points. :-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question