中国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-03 13:00
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Help] Get files from a folder based on a keyword
Printable Version  686 / 2
Floor1 nsplanning Posted 2007-02-17 02:00
新手上路 Posts 1 Credits 4
There are the following files under the C:/data folder:
......
Test20070214.Evt
Test20070215.Evt
Test20070216.Evt

I want to copy the file that matches the system date to C:/copy
For example, if today is 20070216, then copy Test20070216.Evt to C:/copy

Please help me.
Floor2 slore Posted 2007-02-17 03:02
铂金会员 Posts 2,478 Credits 5,212
You don't need to worry about the files in the folder.

Just convert %date% directly into the 20070216 format, then just use copy Test%date2%.Evt C:\
date2 is the converted one...
Floor3 ding520 Posted 2007-02-17 03:20
初级用户 Posts 15 Credits 29
Sigh..... learning ing~
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023