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-03 12:58
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Copy files created today on a specified drive into a directory named with today's date? View 858 Replies 3
Original Poster Posted 2007-02-28 07:53 ·  中国 河北 电信
初级用户
Credits 26
Posts 11
Joined 2007-02-28 07:17
19-year member
UID 80380
Gender Male
Status Offline
How can I copy the files created today on a specified drive into a folder created with today's date??

1. Creating a directory with today's date can be done with a command like this:
@echo off
md c:\%date:~0,10%
2. Copy the files created today on a specified drive into the folder created with today's date
Urgently waiting for guidance

[ Last edited by runwater on 2007-2-27 at 06:55 PM ]
Floor 2 Posted 2007-02-28 11:03 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Floor 3 Posted 2007-02-28 23:58 ·  中国 河北 保定 联通
初级用户
Credits 26
Posts 11
Joined 2007-02-28 07:17
19-year member
UID 80380
Gender Male
Status Offline
Great!! Changing it to xcopy makes it copy!
Floor 4 Posted 2007-03-01 03:00 ·  中国 河北 保定 联通
初级用户
Credits 26
Posts 11
Joined 2007-02-28 07:17
19-year member
UID 80380
Gender Male
Status Offline
Why does it feel like an infinite loop when I use it?????????????????????????????????????????????????????????????
Forum Jump: