设置文件的创建日期
我有一个充满 mp3 文件的文件夹。它们连续命名为 01.mp3 到 86.mp3。它们目前都具有相同的 create_date。我需要它们都有不同的创建日期,最好间隔一天。只要创建日期与文件名编号的方向相同,创建日期是什么并不重要。我对 PHP 非常流利,但这实际上是我唯一的语言。我实际上有一个设置修改日期的 php 脚本,但它不能满足我的需要。我找到了一个实用程序,可以让我更改创建日期,但它是一个 GUI,我一次只能更改 1 个文件。我需要它是一个批处理过程。有什么想法吗?
I have a folder full of mp3 files. They are named consecutively 01.mp3 through 86.mp3. They currently all have the same create_date. I need them to all have different create_dates, preferably a day apart. What the create date is doesn't really matter as long as the create dates are in the same direction as the file name number. I'm pretty fluent in PHP but that's really my only language. I actually got a php script that set the modify date but that doesn't work for what I need. I found a utility that would let me change the create date but it was a gui and I could only change 1 file at a time. I need it to be a batch process. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一个名为 FileTouch 的实用程序。它允许您通过命令行界面修改创建日期等。我只是使用 Excel 构建了一系列命令,将每个文件的创建日期设置为相隔一天,并将其保存为批处理文件。
I found a utility called FileTouch. It lets you modify the create date, among other things, through a command line interface. I just used excel to build a series of commands that set the create date of each file a day apart and saved it as a batch file as so.