Click here to Skip to main content
15,899,549 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to write a backend job which will read a csv & call a webservice based on some logic. This job should be scheduled to run once daily.
I have written a console application for the logic which is reading a csv file & calling webservice.
Now i need to create a service for this.
Should i create a windows service & copy my code there or
is there any way of converting console application into service or
should i use windows scheduler?

please help as i am new to C#.
Posted

I believe it will not be a wise decision to convert the console application to a service....cause service is meant for something else rather than job scheduling....in case you convert the console to a windows service you need to write some custom code to make the windows service run once per day..in this scenario the best option will be using windows scheduler service and point it to the console application rather than creating a windows service. If you have any other requirement or necessity besides the scheduling thing...please let me know...
 
Share this answer
 
Comments
Sandeep Mewara 9-Dec-10 9:18am    
Comment from OP:
Thankyou so much for such a quick reply.
Can you also tell me how to use windows scheduler to call my cosole application & schedule it.
senguptaamlan 10-Dec-10 2:39am    
you can check out the following link
http://support.microsoft.com/kb/308569
Although the platform is WinXP, but the method is nearly the same for all Windows OS
Thanku. My issue is resolved. If anyone wants to know how to schedule a job in windows task scheduler, please refer:
http://www.onlinetoolworks.com/docs/winTaskSched.doc[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900