Howdy,

I'm a seasoned ASP.Net developer and I have a customer who needed a small
windows app that consumed a web services and dumped it into their Access DB.
I have the app done, and I must say it was easier than I thought, and now I'd
like to put the app on a scheduler using Windows Scheduler. How do I setup my
app to take a switch, like "application.exe /quiet /import true /log
c:\log.txt".

Thanks!!


--
David Lozzi
Delphi Technology Solutions
Blog: www.lozzi.net

RE: application.exe /Switch - how? by MortenWennevik

MortenWennevik
Wed May 07 02:40:00 CDT 2008

Hi David,

Use the overloaded Main method

static void Main(string[] parameters)

Whatever you write after application.exe will be in the space delimited to
the parameters array.

--
Happy Coding!
Morten Wennevik [C# MVP]


"David Lozzi" wrote:

> Howdy,
>
> I'm a seasoned ASP.Net developer and I have a customer who needed a small
> windows app that consumed a web services and dumped it into their Access DB.
> I have the app done, and I must say it was easier than I thought, and now I'd
> like to put the app on a scheduler using Windows Scheduler. How do I setup my
> app to take a switch, like "application.exe /quiet /import true /log
> c:\log.txt".
>
> Thanks!!
>
>
> --
> David Lozzi
> Delphi Technology Solutions
> Blog: www.lozzi.net