4

I found this question being asked on several places on the internet (including the File protocol MSDN page) but no clear answer.

So, if I am calling my application like this: file://c:\myapp.exe is there any way to pass it some command line arguments, like /nospashscreen=true

Things I've tried:

file://c:\myapp.exe?/nospashscreen=true - launches the app, but with no command line arguments :(

Thanks in advance.

4

2 に答える 2

2

I am assuming you are using Windows? If so, there is no way to pass a parameter using the "file://" syntax, as it is an Asynchronous Pluggable Protocol that does not accept parameters.

However, if you really need it, you can craft your own pluggable protocol that accepts parameters.

Here's an example:

An Asynchronous Pluggable Protocol Handler for data: URLs

于 2010-01-26T17:40:38.163 に答える
1

# (ハッシュ) 記号を使用して引数を渡すことができます。

于 2010-06-09T09:39:54.063 に答える