Urgent - Help!

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 in advance
 
G

Guest

I know this is probably not the answer that you are looking for, but this
sounds like something that might work better as a windows service. It's a bit
more work, but they're really not that difficult.

Or... you could make it into a Windows forms application, and just hide the
form by setting its visibility to false.

Doug
 
J

Jim Wooley

Rather than worrying about hiding the form of the windows form app, simply
use sub main as your start-up and don't load any forms.

One other thing to check: Make sure you have included logging and exception
handling as you won't know what's going on in your program otherwise when
it is run on the server.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
 

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