Results 1 to 6 of 6

Thread: How to work with DiskCopy command copy

  1. #1
    Join Date
    Nov 2009
    Posts
    675

    How to work with DiskCopy command copy

    Hi,
    I need some information on working of Diskcopy in Windows XP. What here I am trying to do is to move a file from my pen-drive to the hard drive. The usb is accessible in DOS mode. So better to take out the files and then format it to aviod my data loss. I am not so familiar with the disk copy command but what to use the same. Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    3,316

    Re: How to work with DiskCopy command copy

    DISKCOPY is a specialized command in Disk Copy. So use XCOPY rather than DISKCOPY to copy a disk that contains sub-directories containing files to a disk that is not the same format. Indeed, DISKCOPY copying the disc track by track, it is essential that the source drive and destination drive are the same size, which is not required by XCOPY.

  3. #3
    Join Date
    Jan 2008
    Posts
    3,755

    Re: How to work with DiskCopy command copy

    In general, use xcopy if you do not want to get a complete picture of the source disk. However, this command does not copy hidden files or system files such as IO.SYS or MSDOS.SYS. Do not use for the copying of a disc system instead use DISKCOPY. XCOPY exit codes this is also called codes ERRORLEVEL.

  4. #4
    Join Date
    Mar 2009
    Posts
    1,588

    Re: How to work with DiskCopy command copy

    If the destination shown does not include a directory and does not end with an anti slash (\), XCOPY displays the message. The message is target represents Does a filename or directory on the target drive (F = file, R = Directory)? Press F for copy (s) file (s) in another file, and R to copy them to a directory.

  5. #5
    Join Date
    Apr 2008
    Posts
    4,088

    Re: How to work with DiskCopy command copy

    You can set the environment variable like COPYCMD to specify if commands COPY, MOVE XCOPY and you should ask for confirmation before overwriting a file, these commands are executed from the DOS prompt or d a batch. To force commands [COPY], [MOVE] and XCOPY to ask in all cases, confirmation before overwriting files, specify the /-Y for the environment variable COPYCMD.

  6. #6
    Join Date
    May 2008
    Posts
    4,831

    Re: How to work with DiskCopy command copy

    If you are planning to force these commands to replace the files in all cases without prompting, specify the / Y for the environment variable [COPYCMD]. Specifying the / Y or /-Y for one of these commands ADVANTAGE all default settings, as well as the current setting of environment variable [COPYCMD].In versions of DOS earlier DOS 6.22, XCOPY to copy the cache files and system files, but those were the good old days. To disable the cache or system attributes of a file, first use the command ATTRIB.

Similar Threads

  1. How to copy the specific file using “dd” command
    By Tallin in forum Software Development
    Replies: 3
    Last Post: 09-11-2010, 05:28 PM
  2. Lost space after diskcopy
    By akkers in forum Hardware Peripherals
    Replies: 1
    Last Post: 10-05-2010, 05:50 PM
  3. How to Copy Text in a cell using the Command Button?
    By taher in forum Software Development
    Replies: 5
    Last Post: 06-01-2010, 09:09 PM
  4. Copy the results of a DOS command
    By Reegan in forum Tips & Tweaks
    Replies: 0
    Last Post: 17-10-2008, 04:42 PM
  5. Command prompt "COPY" command not working in brand new Windows Vis
    By CMD COPY command not working in Vista in forum Vista Help
    Replies: 7
    Last Post: 06-02-2008, 02:50 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,581,279.77205 seconds with 16 queries