click once command line parameters how to ?

T

Tom

I want to pass parameters to a click once application run from the windows
scheduler. I have found several references that tell me these applications
are launced using a URL to the deployment manifest using query string
parameter syntax:
http://mydeploymentserver/MyApplicationFolder/MyApplication.application?param1=foo&param2=bar
2. The question is how can I do that? Is there a way to do this from a .bat
file? Do I need to write an application to send the http request? Is there an
example application somewhere? This seems like something that is common
enough I should not have to write code to get it done. I have found several
examples of how to retrieve this data within my click once applicaton but
none on how to send the request.

Thanks for any ideas.
Have a great week-end.
Tom
 
T

Tom

Yes that is one of several places that tell me how to retrieve the query
string. But how do I send it? If it is not yet obvious I have done almost no
WEB development. I think I want to use

WebRequest req =
WebRequest.Create(@"http://servername/...../myprogram.application");

but have not been able to make this work, (404) but I pasted the location in
and changed the direction of the /\. What req.Method do I use for this: POST,
GET or something else? Neither of those seem appropriate for the request.

Thanks for taking a look at this.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top