中国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-16 06:15
47,813 topics / 349,903 posts / today 1 new / 48,258 members
DOS疑难解答 & 问题讨论 (解答室) » Question about a file copy operation, a bit difficult
Printable Version  659 / 0
Floor1 可乐泡饭 Posted 2003-11-23 00:00
初级用户 Posts 15 Credits 155
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!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023