中国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-10-24 03:19
47,815 topics / 349,928 posts / today 1 new / 48,287 members
DOS批处理 & 脚本技术(批处理室) » Automatically delete the specified file 100 days after the file is generated, and not in the trash can
Printable Version  5,992 / 21
Floor16 timlee Posted 2007-01-20 11:56
新手上路 Posts 8 Credits 16
But everyone's enthusiasm is worthy of recognition.
Floor17 asbai Posted 2007-01-20 13:03
高级用户 Posts 252 Credits 653
Originally posted by xiaoqiangzx at 2007-1-16 09:47:
First of all, I very much admire everyone's professional knowledge and enthusiasm for learning~~
 I, the younger brother, have something to say
DOS is not like C++, can it be simple? ~~~
 Don't make it seem very profound, be popular...


It is not okay to use the task scheduler to run the delete command every 100 days, because the LZ requires deleting files that are 100 days ago, not deleting files every 100 days. The difference between these should be very obvious, right?

For example: A file created on the 99th day should be deleted on the 199th day. If you don't calculate and judge, and directly kill everything every 100 days, a file created on the 99th day will be deleted the next day.
Floor18 everest79 Posted 2007-01-20 17:32
金牌会员 Posts 1,127 Credits 2,564
Writing this is the most tiring
Floor19 52enjoy Posted 2007-01-21 08:40
初级用户 Posts 8 Credits 20
Everyone thinks there should be code execution, and the thinking is a bit rigid. The brother on the 13th floor is very good.
Floor20 aspirer Posted 2007-01-21 11:30
初级用户 Posts 35 Credits 72
For example, to delete the files under the D:\C1 folder. Using the forfiles that comes with Microsoft Windows 2003 is really a tenth of the effort but a hundred times the result.


[ Last edited by aspirer on 2007-1-20 at 10:32 PM ]
Floor21 szww Posted 2007-03-23 06:06
初级用户 Posts 28 Credits 59
The understanding of building 13 is incorrect, but the idea is good.
The idea of building 20 is also not bad.
But it only runs under 2003.
Floor22 xjzhf4 Posted 2008-03-07 11:06
新手上路 Posts 5 Credits 12
A bit complicated, can't understand it very well, but still thank you.
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023