中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-07 15:39
48,041 topics / 350,128 posts / today 3 new / 48,252 members
DOS批处理 & 脚本技术(批处理室) » 【Help】How to modify the modification time of a file
Printable Version  2,587 / 4
Floor1 simplenoughappy Posted 2008-02-21 18:07
初级用户 Posts 19 Credits 42
There is a A.DBF file at hand. How to make its modification time be the current time?
First, I wrote BREAK >A.DBF
But the format of the DBF file was cleared.. It's not a database file anymore.
Then I changed it to BREAK >>A.DBF...
The modification time didn't change again.. May I ask how to solve it?

[ Last edited by simplenoughappy on 2008-2-21 at 06:34 PM ]
Floor2 simplenoughappy Posted 2008-02-21 18:43
初级用户 Posts 19 Credits 42
See someone's one
E:
CD E:\1
COPY A.DBF+;
can be realized....
But if you directly write the path in COPY, there is no change.. May I ask why?
Floor3 regvip2008 Posted 2008-02-23 11:37
初级用户 Posts 87 Credits 187
I think so:
Copying a.dbf to c:\a just simply copies the file from one path to another, and of course the time attributes of the original file are also copied over. And Copy a.dbf+; is another usage of the copy command. In fact, it is equivalent to appending or modifying, so its modification time will naturally change.
Floor4 zyz0304360 Posted 2008-02-23 18:36
中级用户 Posts 123 Credits 257 From 烟台
Floor5 HAT Posted 2008-02-24 21:54
版主 Posts 5,017 Credits 9,023
The small tool touch.exe for Unix for Windows
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023