How can I check if referenced application exists?

I am building a presence application that passes references to programs on a PC. That is, my instant messaging client has a "sub-channel" of sorts that will pass my current mode of communications (i.e., the best way to reach me at that exact moment for a voice conversation). Some of the URI's that we pass include:

skype://skypename

sms://+16175551212

The question I have is this: When I as a user get this URI, is there a way for VB.NET to check my local PC to see if I have Skype installed (per example one above)? If I don't have Skype installed on the endpoint, I'd like to be able to gray out the "launch" button. As well, once I know that I have Skype loaded, I'd want to locate the Skype EXE and launch it with parameters. THANKS...

[789 byte] By [Blueforce] at [2007-12-28]
# 1

Hi,

Remember to add the line>>

Imports System.IO ' at the very top of your code window. :-)

Private Sub Button2_Click(ByVal sender As System.Object, _

ByVal e As System.EventArgs) Handles Button2.Click

Dim path As String = "C:\Program Files\Skype\Phone\skype.exe"

If File.Exists(path) Then

MsgBox("Skype is installed!!")

Else

MsgBox("Skype is not installed!!")

End If

End Sub

See these articles too.>>

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiofileclassexiststopic.asp

http://www.devx.com/vb2themax/Tip/19507?type=kbArticle

Regards,

S_DS

Spidermans_DarkSide at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...