![]() |
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-02 09:06 |
47,813 topics / 349,918 posts / today 0 new / 48,279 members |
| DOS批处理 & 脚本技术(批处理室) » Rename files if they were modified within 20 minutes |
| Printable Version 870 / 2 |
| Floor1 balihaha | Posted 2010-06-11 11:41 |
| 新手上路 Posts 1 Credits 1 | |
|
Basically, scan all files in a folder.
If a file is found to have been modified within 20 minutes, automatically rename it. Format: original filename + date + time How should the script be written? Thanks. |
|
| Floor2 Hanyeguxing | Posted 2010-06-11 15:02 |
| 银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂 | |
|
Scan the D:\rec\ directory, excluding hidden/system-attribute files and excluding subdirectories:
[ Last edited by Hanyeguxing on 2010-6-11 at 15:05 ] |
|
| Floor3 pdanniel66 | Posted 2010-06-11 20:41 |
| 初级用户 Posts 64 Credits 68 | |
|
create D:\rec\ folder and files
test result as below: The system cannot find the path specified. Press any key to continue . . . |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |