What I mean is, when user click a button on a webpage, a program which has already installed on his computer would be executed. I also need to pass some command line para
This is not possible. If it was, it would be a huge security breach.
Imagine being able to let the user click a button on the webpage and as a result format his harddrive with the standard format command? I bet you wouldn't want that happening to yourself.
Maybe you can think about exposing a webservice from your webapplication and let the desktopclient look at that webservice?