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-26 21:24
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question about a file copy operation, a bit difficult View 611 Replies 0
Original Poster Posted 2003-11-23 00:00 ·  中国 湖北 武汉 联通
初级用户
Credits 155
Posts 15
Joined 2003-11-22 00:00
22-year member
UID 13200
Gender Male
Status Offline
Under DOS
I'm trying to make a BAT batch file under DOS.
Its task is to copy all folders in H:, including subfolders, and all files to a folder on D: named after the current system time, while keeping the original directory structure of H:. Then delete all folders and files in H:.

Now I've run into a difficulty:
how to copy the content that needs to be copied to the destination drive, and put it into a folder created on the spot. This folder can be given a random name, preferably named after the current system time.

How can this be done? Please advise!
Forum Jump: