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-09-15 05:31
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » I might need a small program View 1,514 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 job is to copy all folders in H:, including subfolders and all files, into 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 difficult point:
how to copy the content 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 do I do this? Please advise!
Forum Jump: