如何在MVC C#中自动上传文件夹中的excel文件作为计划时间(我们在项目中使用devexpress tolls) [英] How to automatically upload a excel file from a folder as a schedule time in MVC C# (we are using devexpress tolls in our project)

查看:67
本文介绍了如何在MVC C#中自动上传文件夹中的excel文件作为计划时间(我们在项目中使用devexpress tolls)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在mvc c#(visual studio 2013)中定义路径自动上传4个excel文件,如预定时间(例如每月)。



是否需要任何网络服务或时间表?



我尝试过:



我刚刚开始并使用了一个Web服务,但它没有工作

I have need to automatic upload 4 excel file from a defined path in mvc c#(visual studio 2013) like as a scheduled time(e.g. monthly).

Is any web service required or a time schedular?

What I have tried:

I have just started and used a web service, but its not working

推荐答案

Quote:

是否需要任何网络服务或时间表?

Is any web service required or a time schedular?



Asp MVC 你将无法完成这项任务。您将创建一个简单的控制台应用程序并添加相关代码以从所需位置处理该文件,

配置 exe 任务计划程序 [ ^ ]以定期方式运行作业。



参考这些文章来完成任务

控制台应用任务调度程序 [ ^ ]

使用Windows计划程序定期执行控制台应用程序 - YouTube [ ^ ]


In Asp MVC you wont be able to achieve this task. You shall create a simple Console application and add the relevant code to process the file from a desired location,
configure the exe in Task Scheduler [^] to run the job in a periodic manner.

refer these articles to achieve the task
Console App Task Scheduler[^]
Executing console application periodically using windows scheduler - YouTube[^]


这篇关于如何在MVC C#中自动上传文件夹中的excel文件作为计划时间(我们在项目中使用devexpress tolls)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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