Discussion Locked

What DOS command do I use?

0 helpful
15 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm installing a new hard drive and want to copy the contents of the current drive to the new one.
Assuming the new drive's letter will be C: and the current drive's will be D:, what DOS command do I use and what is the format?
Thank you.

15 replies

by jeff anderson

After formatting the new drive you could use
diskcopy D: C: I personally would use the windows operating system and drag and drop in Windows Explorer if that is an option.
Jeff

by thechas

Check the drive manufactures web site, or look for a floppy in the drive box.

Many drives come with software to copy your old drive over to your new drive.
This is much faster than using Windows.

You should partition and format the new drive before copying the old drive onto it.

I use Western Digital drives. When I run their software, I select manual mode, and just copy the old drive onto the new drive.

Chas

by drb63

In Windows, open up a DOS windows. From there, type the following:

xcopy32 c:*.* d:*.* /s /c /h /e /r /k

This is assuming that the second drive is drive D:.

If not, use the appropriate drive letter.

by maxwell edison

I would want to avoid copying the system and configuration files from the old hard drive to the new. This would make the use of diskcopy undesirable. Diskcopy will, more or less, make an image of the entire drive. (If that's what you do indeed want,then disregard my comment.) Moreover, diskcopy is really intended to make exact copies of floppy disks, not hard disks.

I assume you want to copy only data files and the like. Therefore, the use of xcopy with the proper switches may be what you're looking for.

An example (As run from the destination drive):

xcopy d:\data\*.*/s

The /s switch will copy the directory (data) and all subdirectories - the directory tree - within that directory.

Look at this link for a further explanation of the command which includes a listing of all possible switches:

http://www3.sympatico.ca/rhwatson/dos7/z-xcopy.html

Here's a similar page explaining diskcopy:

http://www3.sympatico.ca/rhwatson/dos7/z-diskcopy.html

MS-DOS Commands:http://www3.sympatico.ca/rhwatson/dos7/

(REMOVE the SPACES that may have snuck into the pasted URLs.)

by vmdn386

The best command is to use Ur windows explorer to copy the files selectively if U have windows OS. Other wise

type at dos prompt(remember this is a external command and U need to have this file in c:\windows\command directory)
diskcopy D: C:
But this will copy all the unwanted junk if any to Ur new HDD from old one.

If U install the new HDD as a solution for bad sectors developed in Ur old HDD then first run scandisk with surface option to mark the bad sectors

run

scandisk c:/surface/autofix/nosave
before running disocopy command.

hope this solved Ur problem.

by vmdn386

The best command is to use Ur windows explorer to copy the files selectively if U have windows OS. Other wise

type at dos prompt(remember this is a external command and U need to have this file in c:\windows\command directory)
diskcopy D: C:
But this will copy all the unwanted junk if any to Ur new HDD from old one.

If U install the new HDD as a solution for bad sectors developed in Ur old HDD then first run scandisk with surface option to mark the bad sectors

run

scandisk c:/surface/autofix/nosave
before running disocopy command.

hope this solved Ur problem.

This discussion is closed to new replies.