PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET exe for scheduled task

Reply

exe for scheduled task

 
Thread Tools Rate Thread
Old 21-05-2009, 11:12 PM   #1
Curious
Guest
 
Posts: n/a
Default exe for scheduled task


I want to create a C#.NET project that will have an .exe executable to
be launched by Task Manager on a set schedule.

Is "Console Application" the right type for the C#.NET project?
  Reply With Quote
Old 22-05-2009, 01:32 AM   #2
Mr. Arnold
Guest
 
Posts: n/a
Default Re: exe for scheduled task


"Curious" <fir5tsight@yahoo.com> wrote in message
news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>I want to create a C#.NET project that will have an .exe executable to
> be launched by Task Manager on a set schedule.
>
> Is "Console Application" the right type for the C#.NET project?


That's one of two you could use. The other one is a Windows form application
that has no controls on the form, a blank form. The code to start the
application would be in the From-Load(). You would hide the form at
Form.Load() before the processing took place, and then you do a
Form-Unload() after processing is complete to end the program, which you can
use the Task Secdular.


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4095 (20090521) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  Reply With Quote
Old 22-05-2009, 01:32 AM   #3
Mr. Arnold
Guest
 
Posts: n/a
Default Re: exe for scheduled task


"Curious" <fir5tsight@yahoo.com> wrote in message
news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>I want to create a C#.NET project that will have an .exe executable to
> be launched by Task Manager on a set schedule.
>
> Is "Console Application" the right type for the C#.NET project?


That's one of two you could use. The other one is a Windows form application
that has no controls on the form, a blank form. The code to start the
application would be in the From-Load(). You would hide the form at
Form.Load() before the processing took place, and then you do a
Form-Unload() after processing is complete to end the program, which you can
use the Task Secdular.


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4095 (20090521) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  Reply With Quote
Old 22-05-2009, 04:28 AM   #4
Curious
Guest
 
Posts: n/a
Default Re: exe for scheduled task

On May 21, 7:32*pm, "Mr. Arnold" <MR. Arn...@Arnold.com> wrote:
> "Curious" <fir5tsi...@yahoo.com> wrote in message
>
> news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>
> >I want to create a C#.NET project that will have an .exe executable to
> > be launched by Task Manager on a set schedule.

>
> > Is "Console Application" the right type for the C#.NET project?

>
> That's one of two you could use. The other one is a Windows form application
> that has no controls on the form, a blank form. The code to start the
> application would be in the From-Load(). You would hide the form at
> Form.Load() before the processing took place, and then you do a
> Form-Unload() after processing is complete to end the program, which you can
> use the Task Secdular.
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4095 (20090521) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com


Thanks!
  Reply With Quote
Old 22-05-2009, 04:28 AM   #5
Curious
Guest
 
Posts: n/a
Default Re: exe for scheduled task

On May 21, 7:32*pm, "Mr. Arnold" <MR. Arn...@Arnold.com> wrote:
> "Curious" <fir5tsi...@yahoo.com> wrote in message
>
> news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>
> >I want to create a C#.NET project that will have an .exe executable to
> > be launched by Task Manager on a set schedule.

>
> > Is "Console Application" the right type for the C#.NET project?

>
> That's one of two you could use. The other one is a Windows form application
> that has no controls on the form, a blank form. The code to start the
> application would be in the From-Load(). You would hide the form at
> Form.Load() before the processing took place, and then you do a
> Form-Unload() after processing is complete to end the program, which you can
> use the Task Secdular.
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4095 (20090521) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com


Thanks!
  Reply With Quote
Old 22-05-2009, 08:28 PM   #6
Miro
Guest
 
Posts: n/a
Default Re: exe for scheduled task

I agree with Mr. Arnold.

I would use a form, and set the transparency to 100%.
(invisible form).

You never know later if you want to add your own little monitors and debugs
to it during runtime.

Miro

"Curious" <fir5tsight@yahoo.com> wrote in message
news:1bc64f6d-b01f-4e9d-b190-2082ac3be2c6@y17g2000yqn.googlegroups.com...
On May 21, 7:32 pm, "Mr. Arnold" <MR. Arn...@Arnold.com> wrote:
> "Curious" <fir5tsi...@yahoo.com> wrote in message
>
> news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>
> >I want to create a C#.NET project that will have an .exe executable to
> > be launched by Task Manager on a set schedule.

>
> > Is "Console Application" the right type for the C#.NET project?

>
> That's one of two you could use. The other one is a Windows form
> application
> that has no controls on the form, a blank form. The code to start the
> application would be in the From-Load(). You would hide the form at
> Form.Load() before the processing took place, and then you do a
> Form-Unload() after processing is complete to end the program, which you
> can
> use the Task Secdular.
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4095 (20090521) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com


Thanks!

  Reply With Quote
Old 22-05-2009, 08:28 PM   #7
Miro
Guest
 
Posts: n/a
Default Re: exe for scheduled task

I agree with Mr. Arnold.

I would use a form, and set the transparency to 100%.
(invisible form).

You never know later if you want to add your own little monitors and debugs
to it during runtime.

Miro

"Curious" <fir5tsight@yahoo.com> wrote in message
news:1bc64f6d-b01f-4e9d-b190-2082ac3be2c6@y17g2000yqn.googlegroups.com...
On May 21, 7:32 pm, "Mr. Arnold" <MR. Arn...@Arnold.com> wrote:
> "Curious" <fir5tsi...@yahoo.com> wrote in message
>
> news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>
> >I want to create a C#.NET project that will have an .exe executable to
> > be launched by Task Manager on a set schedule.

>
> > Is "Console Application" the right type for the C#.NET project?

>
> That's one of two you could use. The other one is a Windows form
> application
> that has no controls on the form, a blank form. The code to start the
> application would be in the From-Load(). You would hide the form at
> Form.Load() before the processing took place, and then you do a
> Form-Unload() after processing is complete to end the program, which you
> can
> use the Task Secdular.
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4095 (20090521) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com


Thanks!

  Reply With Quote
Old 23-05-2009, 11:40 AM   #8
Gloops
Guest
 
Posts: n/a
Default Re: exe for scheduled task

Mr. Arnold a écrit, le 22/05/2009 01:32 :
>
> "Curious" <fir5tsight@yahoo.com> wrote in message
> news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>> I want to create a C#.NET project that will have an .exe executable to
>> be launched by Task Manager on a set schedule.
>>
>> Is "Console Application" the right type for the C#.NET project?

>
> That's one of two you could use. The other one is a Windows form
> application that has no controls on the form, a blank form. The code to
> start the application would be in the From-Load(). You would hide the
> form at Form.Load() before the processing took place, and then you do a
> Form-Unload() after processing is complete to end the program, which you
> can use the Task Secdular.
>



Hello,

You also have another solution. In program.cs in a Windows application,
you find the instruction
Application.Run(new Form1());

If you quote that instruction so that it is not excuted, the form is not
loaded, so you do not even have to unload it, and you can put your
instructions underneath.

Supposing one day you come to need an interface, you can unquote the
instruction that launches the form -and pay attention if you need it
before or after the other instructions.

Of course, supposing the program reaches a certain size, it is important
to remember to keep it a clear structure, for instance by writing static
methods in classes.

  Reply With Quote
Old 23-05-2009, 11:40 AM   #9
Gloops
Guest
 
Posts: n/a
Default Re: exe for scheduled task

Mr. Arnold a écrit, le 22/05/2009 01:32 :
>
> "Curious" <fir5tsight@yahoo.com> wrote in message
> news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
>> I want to create a C#.NET project that will have an .exe executable to
>> be launched by Task Manager on a set schedule.
>>
>> Is "Console Application" the right type for the C#.NET project?

>
> That's one of two you could use. The other one is a Windows form
> application that has no controls on the form, a blank form. The code to
> start the application would be in the From-Load(). You would hide the
> form at Form.Load() before the processing took place, and then you do a
> Form-Unload() after processing is complete to end the program, which you
> can use the Task Secdular.
>



Hello,

You also have another solution. In program.cs in a Windows application,
you find the instruction
Application.Run(new Form1());

If you quote that instruction so that it is not excuted, the form is not
loaded, so you do not even have to unload it, and you can put your
instructions underneath.

Supposing one day you come to need an interface, you can unquote the
instruction that launches the form -and pay attention if you need it
before or after the other instructions.

Of course, supposing the program reaches a certain size, it is important
to remember to keep it a clear structure, for instance by writing static
methods in classes.

  Reply With Quote
Old 26-05-2009, 09:37 PM   #10
Curious
Guest
 
Posts: n/a
Default Re: exe for scheduled task

On May 23, 5:40*am, Gloops <glo...@invalid.zailes.org> wrote:
> Mr. Arnold a écrit, le 22/05/2009 01:32 :
>
>
>
> > "Curious" <fir5tsi...@yahoo.com> wrote in message
> >news:2af0cd86-69b8-42fa-8d3e-fa654bba26c3@n4g2000vba.googlegroups.com...
> >> I want to create a C#.NET project that will have an .exe executable to
> >> be launched by Task Manager on a set schedule.

>
> >> Is "Console Application" the right type for the C#.NET project?

>
> > That's one of two you could use. The other one is a Windows form
> > application that has no controls on the form, a blank form. The code to
> > start the application would be in the From-Load(). You would hide the
> > form at Form.Load() before the processing took place, and then you do a
> > Form-Unload() after processing is complete to end the program, which you
> > can use the Task Secdular.

>
> Hello,
>
> You also have another solution. In program.cs in a Windows application,
> you find the instruction
> Application.Run(new Form1());
>
> If you quote that instruction so that it is not excuted, the form is not
> loaded, so you do not even have to unload it, and you can put your
> instructions underneath.
>
> Supposing one day you come to need an interface, you can unquote the
> instruction that launches the form -and pay attention if you need it
> before or after the other instructions.
>
> Of course, supposing the program reaches a certain size, it is important
> to remember to keep it a clear structure, for instance by writing static
> methods in classes.


Way to go!
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off