我想要一个web服务(visual studio)在Windows任务调度程序中运行 [英] I want a webservice (visual studio) to run in windows task scheduler

查看:131
本文介绍了我想要一个web服务(visual studio)在Windows任务调度程序中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

推荐答案

也许web服务支持 REST API ,你可以使用命令使用,试着找出是否可能。

然后按照此处的说明使用任务计划程序运行命令: windows - 如何安排任务调用URL - 服务器故障 [ ^ ]



如果无法使用REST命令,您可以尝试使用此CodeProject文章:计划任务Web服务 [ ^ ]



或者像AutoIt这样的自动化工具: https://www.autoitscript.com/site/ [ ^ ]

但是从我在这里读到的这将不是一个可靠的方式...

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/ [ ^ ]
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/[^]


这篇关于我想要一个web服务(visual studio)在Windows任务调度程序中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆