There is a folder A. There are quite a few subfolders inside it. Can DOS complete the task of only copying all the files in folder A without including the subfolders (that is, excluding the subfolders)? If it can, how to do it? Thanks in advance!
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!
Originally posted by fengzi at 2007-5-24 04:06 AM:
copy A\*.* 2\
It should work```It won't copy the contents of subdirectories in directory A
Change the path yourself`
[ Last edited by fengzi on 2007-5-24 at 04:35 AM ]
Originally posted by qinbuer at 2007-5-24 10:12 AM:
Just copy the entire folder, for example, copy A:\B G:
copy will exclude subfolders within folder B
Originally posted by qinbuer at 2007-5-24 10:42 AM:
It's okay to have a folder. For example, there is a folder B and a text file test.txt. Copying A:\b will only copy the text file test.txt. You should try it before asking.