Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
So I have a webservice that displays a gridview of images that can be downloaded. I want to schedule a task in windows task scheduler like everyday it can click the download button row by row. I'm really new to windows task scheduler and don't know how this works. I've searched online. If i create a task and just add the webservice into it, it doesn't click anything right? it just runs the program? Please enlighten me :(

What I have tried:

Created a basic task and imported the program file. My program is actually a webservice. So i imported a web service.
Posted
Updated 9-Feb-19 9:51am
Comments
Richard MacCutchan 9-Feb-19 5:49am    
Services do not run in the same environment as Windows or Web apps, so they do not have a screen or keyboard. You need to schedule some other application to do the job.

1 solution

Maybe the webservice supports a REST API with commands that you can use, try to find out if this possible.
Then follow the instructions here to run the command with Task Scheduler: windows - How to schedule a task to call a URL - Server Fault[^]

If it is not possible to use REST commands, you could try this CodeProject article: Scheduled Tasks Web Service[^]

Or an automated tool like AutoIt: https://www.autoitscript.com/site/[^]
But from what I read here this will not be a reliable way ...
https://www.autoitscript.com/forum/topic/157809-windows-task-scheduler/[^]
https://www.autoitscript.com/forum/topic/190607-auto-it-not-working-when-using-task-scheduler/[^]
 
Share this answer
 
v3

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