7

I created an application to act as a protocol handler, the registry are set up according to http://msdn.microsoft.com/en-us/library/ie/aa767914(v=vs.85).aspx

Then in the webpage I have something like:

<a href="testapp:arg1">Test App</a>

If I click the link, the app is launched and "testapp:arg1" is passed in as an argument.

Now I want to pass multiple arguments to the handler. I'm guessing in the "command" registry key, I would have "path_to_exe" "%1" "%2". However I can't figure out how to write the html link to supply multiple arguments.

Is it possible to pass multiple arguments? If so, how do I do it and are there differences between different browsers?

1 Answer 1

2

In Registering an Application to a URI Scheme, it says that

When a user clicks a link containing your custom URI scheme, Windows Internet Explorer launches the pluggable protocol handler registered for that URI scheme. If the specified open command specified in the registry contains a %1 parameter, Internet Explorer passes the URI to the registered pluggable protocol handler application.

which means, spaces will be handled as the character in the whole URI.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.