Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

diskcopy

Feedback

In this article

Copies the contents of the floppy disk in the source drive to a formatted or unformatted floppy disk in the destination drive. If used without parameters,diskcopy uses the current drive for the source disk and the destination disk.

Syntax

diskcopy [<drive1>: [<drive2>:]] [/v]

Parameters

ParameterDescription
<drive1>Specifies the drive that contains the source disk.
/vVerifies that the information is copied correctly. This option slows down the copying process.
/?Displays help at the command prompt.

Remarks

  • Diskcopy works only with removable disks such as floppy disks, which must be the same type. You cannot usediskcopy with a hard disk. If you specify a hard disk drive fordrive1 ordrive2,diskcopy displays the following error message:

    Invalid drive specificationSpecified drive does not exist or is nonremovable

    Thediskcopy command prompts you to insert the source and destination disks and waits for you to press any key on the keyboard before continuing.

    After it copies the disk,diskcopy displays the following message:

    Copy another diskette (Y/N)?

    If you pressY,diskcopy prompts you to insert source and destination disks for the next copy operation. To stop thediskcopy process, pressN.

    If you're copying to an unformatted floppy disk indrive2,diskcopy formats the disk with the same number of sides and sectors per track as are on the disk indrive1.Diskcopy displays the following message while it formats the disk and copies the files:

    Formatting while copying
  • If the source disk has a volume serial number,diskcopy creates a new volume serial number for the destination disk and displays the number when the copy operation is complete.

  • If you omit thedrive2 parameter,diskcopy uses the current drive as the destination drive. If you omit both drive parameters,diskcopy uses the current drive for both. If the current drive is the same asdrive1,diskcopy prompts you to swap disks as necessary.

  • Rundiskcopy from a drive other than the floppy disk drive, for example the C drive. If floppy diskdrive1 and floppy diskdrive2 are the same,diskcopy prompts you to switch disks. If the disks contain more information than the available memory can hold,diskcopy cannot read all of the information at once.Diskcopy reads from the source disk, writes to the destination disk, and prompts you to insert the source disk again. This process continues until you have copied the entire disk.

  • Fragmentation is the presence of small areas of unused disk space between existing files on a disk. A fragmented source disk can slow down the process of finding, reading, or writing files.

    Becausediskcopy makes an exact copy of the source disk on the destination disk, any fragmentation on the source disk is transferred to the destination disk. To avoid transferring fragmentation from one disk to another, use thecopy command or thexcopy command to copy your disk. Becausecopy andxcopy copy files sequentially, the new disk is not fragmented.

    Note

    You cannot usexcopy to copy a startup disk.

  • diskcopy exit codes:

    Exit codeDescription
    0Copy operation was successful
    1Nonfatal Read/Write error occurred
    3Fatal hard error occurred
    4Initialization error occurred

    To process the exit codes that are returned bydiskcomp, you can use theERRORLEVEL environment variable on theif command line in a batch program.

Examples

To copy the disk in drive B to the disk in drive A, type:

diskcopy b: a:

To use floppy disk drive A to copy one floppy disk to another, first switch to the C drive and then type:

diskcopy a: a:

Related links


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?