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-06-28 04:25
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to use batch processing to delete files that are 7 days old View 7,522 Replies 27
Floor 16 Posted 2008-01-04 22:07 ·  中国 陕西 西安 电信
新手上路
Credits 2
Posts 1
Joined 2008-01-04 21:44
18-year member
UID 107688
Gender Male
Status Offline
Do you think I'm poor and don't have enough points? Still won't let me download
Floor 17 Posted 2008-01-05 00:28 ·  中国 上海 徐汇区 电信
新手上路
Credits 2
Posts 1
Joined 2008-01-05 00:01
18-year member
UID 107700
Gender Male
Status Offline
I also want to download, but how can I get points?
Floor 18 Posted 2008-04-23 14:56 ·  中国 北京 通州区 联通
新手上路
Credits 4
Posts 2
Joined 2008-04-22 10:43
18-year member
UID 116579
Gender Male
Status Offline
Honor moderator, I tried this, and it can correctly calculate the time in the Chinese date display environment, but it doesn't work in the English date display environment. Now I'm looking at your code to understand it and write one.
Floor 19 Posted 2008-04-23 14:57 ·  中国 北京 通州区 联通
新手上路
Credits 4
Posts 2
Joined 2008-04-22 10:43
18-year member
UID 116579
Gender Male
Status Offline
Originally posted by qq43142691 at 2007-6-6 04:57 PM:
:: DateDel2.bat - Delete files modified before a specified number of days in the specified path
:: Will Sort - 2005-9-2 - CMD@WinXP
:: Notes: Parameter %1 specifies the number of days, yesterday is 1, the day before yesterday is 2, and so on
:: ...

Honorary moderator, I tested this, it can correctly calculate the time in the Chinese date display environment, but it doesn't work in the English date display environment. Now I'm looking at your code to understand it and write one.
Floor 20 Posted 2008-07-02 14:08 ·  中国 湖北 黄石 大冶市 电信
初级用户
Credits 110
Posts 45
Joined 2008-01-25 23:59
18-year member
UID 109558
Gender Male
Status Offline
Can FORFILES be used in XP?
Floor 21 Posted 2008-07-02 14:10 ·  中国 湖北 黄石 大冶市 电信
初级用户
Credits 110
Posts 45
Joined 2008-01-25 23:59
18-year member
UID 109558
Gender Male
Status Offline
No matter if it works or not, I'll just collect it first and talk about it later
Floor 22 Posted 2008-07-16 11:06 ·  中国 上海 腾讯云
初级用户
Credits 64
Posts 37
Joined 2007-03-14 03:38
19-year member
UID 81659
Gender Male
Status Offline
FORFILES is good, but it can't be used under 2000!!!
Floor 23 Posted 2010-07-01 18:42 ·  中国 四川 成都 电信
新手上路
Credits 1
Posts 1
Joined 2010-06-12 17:35
16-year member
UID 168705
Gender Male
Status Offline
Floor 24 Posted 2010-07-01 23:34 ·  中国 浙江 温州 乐清市 电信
初级用户
★★
Credits 109
Posts 52
Joined 2006-01-03 22:47
20-year member
UID 48392
Status Offline
Most people probably have WinRAR installed on their machines. WinRAR comes with a command - line version called RAR, which supports packing files that are earlier than or later than a specific point in time, and then can automatically delete the source files. Then, you can use the delete command in the batch file to delete the generated RAR archive, and that's it.
Floor 25 Posted 2010-08-10 18:54 ·  中国 广东 佛山 电信
新手上路
Credits 1
Posts 1
Joined 2010-08-08 22:56
15-year member
UID 172021
Gender Male
Status Offline
Thanks
Floor 26 Posted 2010-08-11 21:59 ·  中国 湖北 武汉 电信
新手上路
Credits 3
Posts 3
Joined 2010-08-09 21:10
15-year member
UID 172076
Gender Male
Status Offline
Floor 27 Posted 2010-08-13 10:41 ·  中国 广东 东莞 电信
初级用户
Credits 29
Posts 18
Joined 2008-08-04 09:51
17-year member
UID 122765
Gender Male
Status Offline
Used FORFILES, I'm not very familiar with this command, let's take a look
Floor 28 Posted 2010-08-16 09:52 ·  中国 江苏 苏州 电信
新手上路
Credits 1
Posts 1
Joined 2010-08-13 16:45
15-year member
UID 172301
Gender Male
Status Offline
I'm looking for this!
Forum Jump: