触摸文件以更新文件的日期/时间? (修改日期)(WindowsXP的BatchScript) [英] Touch file to update the date/time of file? (Modified Date) (WindowsXP BatchScript)

查看:182
本文介绍了触摸文件以更新文件的日期/时间? (修改日期)(WindowsXP的BatchScript)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是批处理脚本命令摸上的一个文件,以更新其日期和时间设置为当前日期和时间? (修改日期)

What's a batch script command to touch on a file to update its date and time to the current date and time? (Modified Date)

例如,乔吹送我这是他几个月前创建一个文本文件,当他的邮件我的文档,我要跟踪它是从我收到了(不是当他创造吧)天怎么老这样我想更新文件的日期/时间设置为当前日期/时间。

For example, Joe Blow sends me a text document which he created months ago, when he emails me the document, I want to keep track of how old it is from the day I received it (not when he created it) so I want to update the file's date/time to the current date/time.

我有一个批处理脚本来自动剔除那些没有在90天内编辑的文件,所以这是麻烦的,当我收到一个特别旧的文件,然后突然消失。

I have a batch script to automatically weed out files that haven't been edited within 90 days, so this is troublesome when I receive a particularly older file then all of a sudden it disappears.

和我需要它通过一个批处理脚本,因为我有数百个文件进行管理,它的归档文件。

And I need it via a batch script as I have hundreds of files to manage, and it's for archiving files.

推荐答案

我不能把所有的荣​​誉,但我没有仔细看一下我todo.txt发现它

I can't take all the credit, but I did look through my todo.txt to find it

微软的亲密接触这是一个从像5年前的知识库文章

Microsoft "touch" it's a KB article from like 5 years ago

它的JIST是您使用拷贝/ B MyFileName的+ ,, 其中MyFileName的是你的文件

The jist of it is you use copy /b MYFILENAME +,, where MYFILENAME is your file

这篇关于触摸文件以更新文件的日期/时间? (修改日期)(WindowsXP的BatchScript)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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