what is the difference between windows service and task scheduler?
A scheduler will run a task when a specific event occurs. A Windows service runs all the time. The only thing services do specifically is listen for pause/restart/stop interrupts, but this is rather trivial functionality compared to Task Scheduler.