Re: Sending a switch to a form
From: Christopher Kimbell (c_kimbell_at_online.nospam)
Date: 07/14/04
- Next message: Dennis English: "Slow response on file directory"
- Previous message: William Ryan eMVP: "Re: Datagrid sorting"
- In reply to: Adlai Stevenson: "Sending a switch to a form"
- Next in thread: Rudi: "Re: Sending a switch to a form"
- Reply: Rudi: "Re: Sending a switch to a form"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 21:27:49 +0200
Use the Environment.GetCommandLineArgs() to get a string array of command
line arguments. You can then process this and do whatever you want.
Chris
"Adlai Stevenson" <mstowel@boy.towel.spam> wrote in message
news:FhfJc.2484$mL5.2445@newsread1.news.pas.earthlink.net...
>
> For a Windows Form app, that consumes a web service.
>
> I want the option of being able to run this as a scheduled job in a
> batch mode.
>
> The app ( which I call XMailMan) form has two controls, a
> FileOpenDialog and a submit button.
>
> When you press submit, the FileOpenDialog appears, you select an Xml
> file. It is then parsed in an XmlReader and loaded into an
> XmlDocument. Then it is passed into a web method that takes an
> XmlDocument as a parameter.
>
> Now, I want to have the option of running it in a batch mode where I say.
>
> XMailMan.exe /f:<filename>
>
> and it automatically processes the file and then shuts down.
>
- Next message: Dennis English: "Slow response on file directory"
- Previous message: William Ryan eMVP: "Re: Datagrid sorting"
- In reply to: Adlai Stevenson: "Sending a switch to a form"
- Next in thread: Rudi: "Re: Sending a switch to a form"
- Reply: Rudi: "Re: Sending a switch to a form"
- Messages sorted by: [ date ] [ thread ]