是否可以从Windows任务调度程序调用控制器方法 [英] Is it possible to call controller method from windows task scheduler

查看:66
本文介绍了是否可以从Windows任务调度程序调用控制器方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过方法(http://stackoverflow.com/questions/11083087/call-mvc-controller-from-windows-task-scheduler)来调用控制器操作方法,但是我如何将此方法置于可执行文件中。 exe文件所以,当该.exe运行时,它将调用
控制器动作方法。

I have got Method(http://stackoverflow.com/questions/11083087/call-mvc-controller-from-windows-task-scheduler) to call controller action method but how will i put this method in executable .exe file so, when that .exe will run then it will call the controller action method.

推荐答案

你没有。您可以在计划任务中执行curl或wget
http:// yourapplication / controller / method
You don't. You execute curl or wget http://yourapplication/controller/method in the scheduled task.

这篇关于是否可以从Windows任务调度程序调用控制器方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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