触摸文件来更新文件的日期/时间? (修改日期)(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)
例如,Joe Blow向我发送了几个月前创建的文本文档,当他向我发送文档时,我想跟踪多少年这是从我收到的那天(不是当他创建它),所以我想更新文件的日期/时间到当前日期/时间。
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
Microsofttouch它是一个像5年前的KB文章
Microsoft "touch" it's a KB article from like 5 years ago
这个jist是你使用 copy / b MYFILENAME + ,,
where MYFILENAME是您的文件
The jist of it is you use copy /b MYFILENAME +,,
where MYFILENAME is your file