How to send a parameter along with an exe

  • Thread starter Thread starter Joby
  • Start date Start date
J

Joby

Dear All,
I have a console application exe of compactframework. I want to
download this exe from the web. How can i pass parameter along with
this exe.

Response.Redirect("http://jobychacko/helpme/consoleapp.exe {i want to
passthe parameter here}");
How is it possible?

While downloading this exe i want to pass a parameter along with this
exe.

I have given like this
Response.Redirect("http://jobychacko/helpme/consoleapp.exe?Hello ");
parameter followed by ? - but it is not working.
Please give me a solution.
Thanking you all.

Regrads
Joby
 
So you want a link that runs an EXE with a parameter? I can't imagine that
would be possible. The security risk would be gigantic! Imagine if I could
do this:

<% response.redirect "mysite.com/myvirus.exe myparams" %>

The browser first off won't allow execution without user intervention, most
often it will require a download and not offer even an option to "run".
Second the browser cannot pass command-line parameters to local files.
 
Back
Top