Computing.Net > Forums > Disk Operating System > Copying Files between Drives

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copying Files between Drives

Reply to Message Icon

Name: alskim
Date: July 22, 2005 at 12:14:49 Pacific
OS: MS-DOS 6.22
CPU/Ram: 512kb
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: July 22, 2005 at 13:31:55 Pacific
Reply:

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.


0

Response Number 2
Name: alskim
Date: July 22, 2005 at 14:26:19 Pacific
Reply:

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.


0

Response Number 3
Name: LinuxOS2
Date: July 22, 2005 at 14:27:59 Pacific
Reply:

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


0

Response Number 4
Name: jboy
Date: July 22, 2005 at 15:21:32 Pacific
Reply:

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


0

Response Number 5
Name: CoffeeBreak
Date: July 22, 2005 at 19:23:46 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: CoffeeBreak
Date: July 22, 2005 at 19:56:10 Pacific
Reply:

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


0

Response Number 7
Name: plainandsimple
Date: July 24, 2005 at 00:16:06 Pacific
Reply:

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: drive

xcopy /s c:\compute\*.* d:\compute



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Copying Files between Drives

Copy files to a drive name www.computing.net/answers/dos/copy-files-to-a-drive-name/15821.html

Copy files between two date www.computing.net/answers/dos/copy-files-between-two-date/13967.html

DOS copying files / drive to drive. www.computing.net/answers/dos/dos-copying-files-drive-to-drive/15628.html