dc

dc

  • NA
  • 663
  • 0

C# desktop runtime parameters

Apr 22 2013 5:37 PM
I would like to know who to accomplish the following goal using an existing C# 2008 desktop application.

I would like to take the C# run time input and output parameters and possibly put the calls into a batch file and or with some method you recommend. Here are the following I would like to complete:

1. I would like to run the C# 2008 desktop application and give it input parameters. (This is how the program currently runs.)
2. I would then like to wait for a response from the C# 2008 desktop application before proceeding to the next step. (The program needs to
   wait since it is calling a web service and loading documents to the web service.) I need to make certain the response code call to the web service = 0.
3. Next step depending upon the response from the web service.
   a. If the response from the web service = 0, then the C# 2008 desktop application is called again with parameters to close out the customer account on the web service.
      Also under this step, the results for the second call to the desktop application should be displayed in a message the user can see.
   b. If the response from the web service not = 0, then a message should be displayed to the user stating what the problem is. No further call is made.

Thus can you show me code and/or point me to a reference on how to accomplish this goal?