hidden hit counter
Help!

MS DOS Command - copy the whole directory

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Applications RSS
Next:  Network Win95 with WinXP for shared DSL and/or fi..  
Author Message
Eric
External


Since: Mar 20, 2006
Posts: 71



PostPosted: Fri Sep 22, 2006 5:41 pm    Post subject: MS DOS Command - copy the whole directory
Archived from groups: microsoft>public>win98>apps (more info?)


Does anyone know how to copy the whole directory, including all the
sub-directory with files under MS DOS?
Thank you for any suggestion
Eric
Back to top
Gary S. Terhune
External


Since: Mar 17, 2004
Posts: 4357



PostPosted: Fri Sep 22, 2006 7:07 pm    Post subject: Re: MS DOS Command - copy the whole directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

"Eric" wrote in message

> Does anyone know how to copy the whole directory, including all the
> sub-directory with files under MS DOS?
> Thank you for any suggestion
> Eric
Back to top
ahmadifx
External


Since: Nov 04, 2006
Posts: 2



PostPosted: Sat Nov 04, 2006 12:20 pm    Post subject: RE: MS DOS Command - copy the whole directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Eric,

You are probably looking for xcopy command
--
Regards
Ahmad
Microsoft Student Partner - India
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Applications All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum