Launching a program with url
Hello,
I've discovered that you can launch a program with url with a protocol refering to the program path found in windows register.
:) I've tried it... and it goes well ! I've reused an existing url, rewrited the path to my program, and my program has been launched when I've clicked on hyperlink.
I'm not a specialist in network and url uses, it's rather new for me ! But I would like to get all information of the url for showing them in a textbox. Do you know can I achieve that?
Thanks.
Re: Launching a program with url
Can;t you locate them in the registery then dig them out that way. it seem the simplest way tho.
Re: Launching a program with url
Quote:
Can;t you locate them in the registery then dig them out that way. it seem the simplest way tho.
It seems you only have the path in windows regiter. Url parameters are defined inside the hyperlink
I'm writing my url
cel://Follow/Sol:Earth/ (other paramaters...)
cel is the file protocol found in windows register. How can I show in my textbox all caracters after cel:// ?
Re: Launching a program with url
Hi not sure of this is what you want all it does is extact. Follow/Sol:Erath/ out of the url
VB Code:
Private Sub Command1_Click()
Dim e_pos As Integer
Dim url As String
url = "cel://Follow/Sol:Earth"
e_pos = InStr(1, url, "cel://", vbBinaryCompare)
If e_pos <> 0 Then
MsgBox Mid(url, e_pos + 6, Len(url) - e_pos - 6)
End If
End Sub
Let me know if this is wrong or you need something else.
Re: Launching a program with url
Well, I don't need that first, but I need url string before ! :D
Indeed, when I clicked on my url wherever on my computer, my program is launched, but no way to get url string when my program starts : this is my problem... How can I get all url string when url linked my program?
Re: Launching a program with url
Please anyone have an idea to resolve my problem?