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

Praneeth KumarRank #4,422 · 344 reputationPosted Jun 23, 2011, 1:39 AM EDT
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.
fawzan mohamed65 reputationPosted Jun 23, 2011, 1:43 AM EDT
Praneeth KumarRank #4,422 · 344 reputationPosted Jun 23, 2011, 1:47 AM EDT
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.
Anirudha Gohokar37 reputationPosted Jun 23, 2011, 1:48 AM EDT
Try using Windows Forms by hiding nd showin it as nd when required...
Console App is also a good option..
fawzan mohamed65 reputationPosted Jun 23, 2011, 1:52 AM EDT
fawzan mohamed65 reputationPosted Jun 23, 2011, 1:52 AM EDT
Anirudha Gohokar37 reputationPosted Jun 23, 2011, 1:57 AM EDT
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 mohamed65 reputationPosted Jun 23, 2011, 2:09 AM EDT
fawzan mohamed65 reputationPosted Jun 23, 2011, 3:47 AM EDT