每30分钟在Windows中删除一个CSV文件 [英] Remove a CSV file in windows each 30minutes

查看:173
本文介绍了每30分钟在Windows中删除一个CSV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是每30分钟在Windows中删除CSV文件的最佳方法?



我需要知道是否有直接编程任务的方法在Windows的任务计划程序中,每隔30分钟删除一次XML。



如果不是,那么最好的平台是什么,并为常规执行编程? C#?电源外壳 ?注意:我不允许执行ps1脚本。

我在谷歌搜索但我需要建议或观点。

What could be the best way to remove a CSV file in windows each 30 minutes?

I need to know if there is a directly way to program a Task in the Task Scheduler in windows where an XML is removed every 30minutes.

In case that no , what is the best platform to do it and to program the regular execution? C#? Power Shell ? Note: I'm not allow to execute ps1 scripts.
I searched in Google but I need advice or point of view.

推荐答案

创建一个.BAT文件来删除它,并设置一个任务来运行它: http://windows.microsoft.com/en-gb/windows/schedule-task#1TC=windows-7 [ ^ ]

然后,每30分钟编辑一次计划: http://support.microsoft.com/kb/226795 [ ^ ]
Create a .BAT file to delete it, and set up a task to run that: http://windows.microsoft.com/en-gb/windows/schedule-task#1TC=windows-7[^]
Then, edit the schedule for every thirty minutes: http://support.microsoft.com/kb/226795[^]


最后我创建了一个用于删除文件的C#控制台项目http://msdn.microsoft.com/en-us/library/cc148994.aspx [ ^ ]然后我安排每15分钟执行一次Windows任务。感谢您的ansmwer OriginalGriff
At the end I create a C# console project for remove the files http://msdn.microsoft.com/en-us/library/cc148994.aspx[^] and then I schedule a windows task to be executed every 15 minutes. Thanks for your ansmwer OriginalGriff


这篇关于每30分钟在Windows中删除一个CSV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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