Hi,
Is there a way to run a C# program as a windows service, so that it keeps running untill the windows are running.
Actually this program must monitor the real time creation of files in a specific directory. As soon as a file is created in that folder the program (since it is running as a service), detects its creation and then reads it and prints the output to the console.
Can you please tell me how can i achieve the above scenario (all of it).
Many thanx.......
P.S i also want the program's icon in the Windows Taskbar (i.e System Tray)...

Service
M. Hassan Raza
of course there is, check this step/step sample:
http://www.c-sharpcorner.com/2/window_service.asp
for monitoring the directoy changes use FileSystemWatcher control in VS.NET, here an example:
http://www.c-sharpcorner.com/3/FSWatcherMB.asp