A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » Software & Applications
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

MS DOS Command - copy the whole directory



 
 
Thread Tools Display Modes
  #1  
Old September 23rd 06, 01:41 AM posted to microsoft.public.win98.apps
Eric
External Usenet User
 
Posts: 11
Default MS DOS Command - copy the whole directory

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
  #2  
Old September 23rd 06, 03:07 AM posted to microsoft.public.win98.apps
Gary S. Terhune
External Usenet User
 
Posts: 1,846
Default MS DOS Command - copy the whole directory

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



  #3  
Old November 4th 06, 09:20 PM posted to microsoft.public.win98.apps
ahmadifx
External Usenet User
 
Posts: 2
Default MS DOS Command - copy the whole directory

Hi Eric,

You are probably looking for xcopy command
--
Regards
Ahmad
Microsoft Student Partner - India

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory refresh Paul Rubiola Networking 0 August 11th 05 02:34 AM
finding a lost directory meirman General 4 April 14th 05 05:28 AM
Fonts directory and Application Data directory: reinistalling Win98SE, should I restore these? Tuttle General 24 March 19th 05 04:14 PM
What is the Vcm directory under Windows Martin C General 2 January 30th 05 07:19 PM
Why no TIF directory seen in DOS? Jack General 33 January 24th 05 05:09 AM


All times are GMT +1. The time now is 08:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.