简体   繁体   English

创建一个计划任务,将文件从一个位置复制到另一个位置,并将它们放在一个专门命名的文件夹中

[英]Creating a schedule task that copies file from one location to another and puts them in a specifically named folder

Hello Stackoverflow I am working with a completely new problem here, my scenario is on a daily basis I get for example two file format; 您好Stackoverflow我正在处理一个全新的问题,我的情况是每天都有两个文件格式;例如, .txt and .csv , I want to write a task scheduler script that copies these files for each month, creates a folder that reflects that month and year so for example if is have files (both .txt and .csv format) for the month of November 2014, they are placed in a folder named November 2014 As stated initially its something I want to develop, are their any recommendations in how I can achieve this,Thank You .txt and .csv ,我想编写一个任务计划程序脚本,每个月复制这些文件,并创建一个反映该月份和年份的文件夹,例如,是否有该月份的文件( .txt and .csv格式) 2014年11月,它们被放置在名为November 2014的文件夹中。正如最初所说,我要开发的东西是他们对如何实现这一目标的任何建议,谢谢

只需创建控制台应用程序,它将在启动时执行一次复制,并使用Windows Task Scheduler计划它

  • Build your schedule login using timers. 使用计时器建立时间表登录。
  • Use the windows task scheduler to call your app on schedule. 使用Windows Task Scheduler按计划调用您的应用程序。
  • Use something like quartz scheduler to build schedule in your app. 使用类似石英调度程序的东西在您的应用程序中建立调度程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从专门命名的文件夹中获取文件信息? - How to get file info from a specifically named folder? 将 zip 文件从一个文件夹位置下载到另一个文件夹 - Download a zip file from one folder location to another 从一个文本文件中提取位置未知的行,然后将其放置在另一个文件中 - Taking lines with unknown location from one text file and place them in another 在同一文件夹/目录位置的一个位置上创建文件副本 - Creating copy of a file at one position up in the same folder/directory location 将文件夹(目录)从一个位置移动到另一个位置 - 不当行为 - Moving a folder (Directory) from one location to another - misbehavior 在Web服务中将文件夹从一个位置移动到另一个位置 - Moving folder from one location to another in a web service 使用 web 服务将文件从一个服务器文件夹复制到另一个文件夹 - Copy a file from one server folder to another folder using webservice ReSharper 能否生成将属性从一个对象复制到另一个对象的代码? - Can ReSharper generate code that copies properties from one object to another? 将 output 从一个 function 到另一个,特别是一个数组 - Getting output from one function to another, specifically an array 如何在C#中将文件从一个位置复制到另一个位置 - How to copy a file from one location to another in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM