China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-07 14:42
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 【Help】How to modify the modification time of a file View 2,585 Replies 4
Original Poster Posted 2008-02-21 18:07 ·  中国 广东 深圳 电信
初级用户
Credits 42
Posts 19
Joined 2008-02-18 15:56
18-year member
UID 110899
Gender Male
Status Offline
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 ]
Floor 2 Posted 2008-02-21 18:43 ·  中国 广东 深圳 电信
初级用户
Credits 42
Posts 19
Joined 2008-02-18 15:56
18-year member
UID 110899
Gender Male
Status Offline
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?
Floor 3 Posted 2008-02-23 11:37 ·  中国 湖南 长沙 电信
初级用户
★★
Credits 187
Posts 87
Joined 2007-10-23 16:04
18-year member
UID 100558
Gender Male
Status Offline
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.
Floor 4 Posted 2008-02-23 18:36 ·  中国 山东 烟台 联通
中级用户
★★
Credits 257
Posts 123
Joined 2008-01-05 11:08
18-year member
UID 107722
Gender Male
From 烟台
Status Offline
路 是自己选的
学习 是为了具备解决问题的能力
Floor 5 Posted 2008-02-24 21:54 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
The small tool touch.exe for Unix for Windows
Forum Jump: