application.exe /Switch - how?

  • Thread starter Thread starter David Lozzi
  • Start date Start date
D

David Lozzi

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!!
 
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.
 
Back
Top