Running Invisible console Application

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
 
J

Jesse Houwing

* 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
 
G

Guest

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
 
J

Jesse Houwing

* 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top