login about faq

To prove you're not a spammer, email newuser.lgqa@gmail.com with the subject "Account Request" to request an account.


In DOS how to copy all files from one drive to another.

asked Jun 10 '10 at 14:55

Maro%20Rizkalla's gravatar image

Maro Rizkalla
15212125


Using the xcopy command a user can copy the complete contents of a drive to another drive. An example of a command that can be used is shown below.

answered Jun 10 '10 at 14:57

Maro%20Rizkalla's gravatar image

Maro Rizkalla
15212125

i never used xcopy... i always did the * . * thing

(Jun 10 '10 at 14:59) trueb trueb's gravatar image

go to the drive that has the files you wish to copy.. type in copy . [drive letter]:

answered Jun 10 '10 at 14:57

trueb's gravatar image

trueb
15.9k54105268

I assume you mean to copy them from one place to another. Use XCOPY. Run XCOPY /? to see what parameters to use. I recommend that you include the /c switch, which causes XCOPY to continue the operation even if an error is encountered. It's a pain to figure out what has and hasn't already been copied when the operation is aborted by an access-denied error. Here's the command I usually employ to copy to an empty location:

XCOPY [source directory] [destination directory] /e /c /i /h /k

Reading XCOPY /? in Win9x can be a pain because the /p switch doesn't work. So here's the entire thing: Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N]

source Specifies the file(s) to copy. destination Specifies the location and/or name of new files. /A Copies files with the archive attribute set, doesn't change the attribute. /M Copies files with the archive attribute set, turns off the archive attribute. /D:date Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time. /P Prompts you before creating each destination file. /S Copies directories and subdirectories except empty ones. /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T. /W Prompts you to press a key before copying. /C Continues copying even if errors occur. /I If destination does not exist and copying more than one file, assumes that destination must be a directory. /Q Does not display file names while copying. /F Displays full source and destination file names while copying. /L Displays files that would be copied. /H Copies hidden and system files also. /R Overwrites read-only files. /T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. /T /E includes empty directories and subdirectories. /U Updates the files that already exist in destination. /K Copies attributes. Normal Xcopy will reset read-only attributes. /Y Overwrites existing files without prompting. /-Y Prompts you before overwriting existing files. /N Copy using the generated short names.

-- Gary S. Terhune MS MVP Shell/User

**Source: http://help.lockergnome.com/windows2/MS-DOS-Command-copy-directory--ftopict474138.html**

answered Jun 10 '10 at 14:59

Syren's gravatar image

Syren
582152032

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×323
×90
×33
×17

Asked: Jun 10 '10 at 14:55

Seen: 8,410 times

Last updated: Jun 10 '10 at 15:01