PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET
exe for scheduled task
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET
exe for scheduled task
![]() |
exe for scheduled task |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
"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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
"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 |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#6 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#7 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#8 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#9 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#10 |
|
Guest
Posts: n/a
|
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! |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

