Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi. Im somewhat new to DOS so please excuse some of my poor knowledge here. Im trying to copy all files from one folder, such as c:\folder1, to another drive, such as d:\. I can copy one file fine, but when I try to copy all the files using the wildcard ability *.* it will only copy the first file in the source folder. The weird thing is that I can use the same command but change the destination to somewhere on the same drive letter, such as c:\folder2, and it will copy all the files.
Here are the details of my setup:
MS-DOS Version 6.22
C:\ - Primary HD
I have tried the D:\ to be a partition off of my primary HD and also as a USB External HD.
XCOPY gives the bad command or file name line
The command im using is copy c:\folder1 d:\If there is anything else that might help, please let me know. I was searching through the forums but couldn't come across anything to get to a solution

Hi
Not sure on this one, but it may have something to do with the root directory of drive d:. There is a limit to the number of files that a floppy can hold in it's root drive, there may be a limit to hard drives as well.
try copy c\folder\*.* d:\folder
A folder that's off the root.

thanks for the response. i made a new folder on the d:\ drive but it came up with the same result of only coping over the first file in the source folder.

If no luck yet don’t forget about xcopy, next time at the dos prompt type xcopy/? then enter, read all the flags you can use like /e /s
also xcopy32 and an add on I think is called
xxcopy <----over comes some dos limits if I remember right...........HTH
A real nice program I have used for almost 20 years now is Norton Commander, really nice and makes moving around and copying files or even whole directories in DOS a breeze...www.xxcopy.com/
Keep the old stuff running

This is 622 - there ain't no such thing as Xcopy32 (and even if there was, wouldn't matter)
"XCOPY gives the bad command or file name line"As an external command, the file xcopy.exe must be present, and its location needs to be specified, either from the command line or in the PATH statement - typically it's found in C:\DOS.
It's either that, or else you're a bad DOS typist
"there may be a limit to hard drives as well."
Yes indeed - 512 files or folders from the root on a FAT16 drive not using LFNs - doesn't seem to be the case here, as the only error message reported is the (poorly understood it seems) 'bad command or filename')
Life is hard; it's harder if you're stupid. -John Wayne

Hi alskim,
The following will copy the DOS directory and its contents from your C drive to the D drive. It will also create the directory on the D drive.
copy C:DOS\*.* D:\
Please note that there is no \ after the : in the C:DOS
Good luck.
CoffeeBreak

The previous post did not do what I said. It created a file on the D drive named "DOS" with no file extension. I did not notice that it did not have "DIR." Program said l28 files copied.
Please do the following:
Type at a MS-DOS C prompt:
MD D:\DOS (ENTER)Then type:
copy C:DOS\*.* D:\DOS (ENTER)CoffeeBreak

Alskim: MS-DOS6.22 does not natively
support USB drives or long file names, also
we have DIRECTORIES not FOLDERS.
As an example lets say you wanted to copy
C:\compute to the D: drivexcopy /s c:\compute\*.* d:\compute

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |