Hi,
I need to create an application which should search and capture some user specified files. this application should run as a background process or tray application. Do i have to write a windows service for this?
or how could i get this done??
Thanks a lot in advance.
Loading
fawzan mohamedPosted Jun 23, 2011, 7:47 AM
fawzan mohamedPosted Jun 23, 2011, 6:09 AM
Anirudha GohokarPosted Jun 23, 2011, 5:57 AM
U need to use Windows Forms for this purpose..
Register your app in Windows Registry so that ur app starts automatically whenever pc starts..
fawzan mohamedPosted Jun 23, 2011, 5:52 AM
fawzan mohamedPosted Jun 23, 2011, 5:52 AM
Anirudha GohokarPosted Jun 23, 2011, 5:48 AM
Try using Windows Forms by hiding nd showin it as nd when required...
Console App is also a good option..
Praneeth KumarPosted Jun 23, 2011, 5:47 AM
As a matter of fact Microsoft Windows services, formerly known as NT services enable you to create long-running executable applications that run in its own Windows session, which then has the ability to start automatically when the computer boots and also can be manually paused, stopped or even restarted.
This makes services ideal for use on a server or whenever you need long-running functionality that does not interfere with other users who are working on the same computer. You can also run services in the security context of a specific user account that is different from the logged-on user or the default computer account.
Windows services don't have any interface to the user, so it can not be debugged like any regular application, but it's debugged as a process. .NET has a very nice tool that enables processes debugging while it?s in the run status, by easily pressing Ctrl + Alt + P shortcut.
fawzan mohamedPosted Jun 23, 2011, 5:43 AM
Praneeth KumarPosted Jun 23, 2011, 5:39 AM
Again, if this task is a regular task or not? If it is not a regular task then you can shcedule the task by running an console app using scheduled task. This is better than running a windows service always.