Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
这是我作为计划任务运行的 Powershell 脚本:
从 c:\directory-to-watch 中删除过去 7 天内未触及的所有文件。
Here's a Powershell script that I run as a scheduled task:
Delete all files not touched in the last seven days from c:\directory-to-watch.
我们使用我们创建的 xxcopy 脚本,这些脚本是从任务计划程序执行的,如上面提到的“忘记分号”。
查看他们的命令行参考。它们的实用性非常有用且灵活。
http://www.xxcopy.com/xxcopy01.htm
We use xxcopy scripts that we create and that are executed from task scheduler as Forgotten Semicolon mentions above.
Checkout their command line reference. Their utility is extremely useful and flexible.
http://www.xxcopy.com/xxcopy01.htm