Running Invisible console Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have created a console application in c#.net. I also scheduled it
in the windows scheduler. In the scheduled task i will specify the command
line arguments. When I say "Run", I am getting the command window, which I
dont want. I need to run my application in silent mode. My system is windows
2003 server.

Please help me in this.

Thanks
 
* Nicol wrote, On 2-8-2006 13:47:
Hi,
I have created a console application in c#.net. I also scheduled it
in the windows scheduler. In the scheduled task i will specify the command
line arguments. When I say "Run", I am getting the command window, which I
dont want. I need to run my application in silent mode. My system is windows
2003 server.

Please help me in this.

Thanks

Instead create it as a windows forms application, but remove the
Application.Run call. If you just paste the contents of your console app
into the windows forms app you'll have your invisible app.

Jesse
 
Thanks for your reply. I will set my command line parameters in the
program(Scheduler). Then how come I access these parameters in my windows
application. Plz help
 
* Nicol wrote, On 3-8-2006 12:05:
Thanks for your reply. I will set my command line parameters in the
program(Scheduler). Then how come I access these parameters in my windows
application. Plz help

The windows program has a public static void main that has the exact
same signature as a console application. Apart from removing the
Application.Run call from it, there's no difference.

Jesse
 
Back
Top