Extrakun
Extrakun

Reputation: 19325

Specify multiple command line parameters

I am following this example by Microsoft to register an application with a web protocol.

By adding this key: shell/open/command/(Default) = "C:\Program Files\Alert\alert.exe" "%1"

I am able to pass in a single parameter. How do I pass in many parameters, separated by a delimiter (say a space)? I have tried this but it doesn't work:

shell/open/command/(Default) = "C:\Program Files\Alert\alert.exe" "%1" "%2" "%3"

Upvotes: 0

Views: 958

Answers (2)

webspy
webspy

Reputation: 726

Try shell/open/command/(Default) = "C:\Program Files\Alert\alert.exe" "%1" %*

Upvotes: 0

crashmstr
crashmstr

Reputation: 28583

It looks like the OS will only pass one parameter: the clicked URL.

If you need more information, perhaps you could encode it in the URL itself?

Upvotes: 2

Related Questions