Forum Home
Press F1
 
Thread ID: 16003 2002-02-23 10:46:00 Copying all files on disk.... Guest (0) Press F1
Post ID Timestamp Content User
36797 2002-02-23 10:46:00 Sorry, I have seen this discussed before, but I want to be clear.

copy C:\*.*

will or will not copy all files on hard drive;

copy D:\*.* C:\*.*

will or will not copy all from CD to hard drive? Does it miss hidden files or something.
What is Xcopy compared to the copy command?

Thanks for the clarification.
Guest (0)
36798 2002-02-23 14:30:00 Cant help you re xcopy as I dont use it.

The DOS copy command has the following usage copy <source> <destination>.

copy c:\*.* wont work as you have not specified where to copy c:\*.* to.

copy d:\*.* c:\*.* will copy all files from D: to C:

Strictly speaking, C:\*.* is unnecessary, as copy d:\*.* c: will do exactly the same thing.

If you are wanting to copy files from hard disk to CD, you would use copy c:\*.* d:
providing of course you have appropriate CD-R DOS drivers.
Guest (0)
36799 2002-02-23 21:05:00 I don't think copy gets everything. I would use xcopy instead :

c:
cd\
'xcopy *.* <destination> /s /e /c /h /r /k /i' (without quotes - all this on one line)

There is also a freeware xcopy equivalent called 'xxcopy' which is slightly better than standard xcopy as it fixes a few problems regarding short filenames and also adds a few extra features. Despite that I still don't actuall have a copy ! I tend to use Ghost if I'm doing a whole partition or whole disk.
Guest (0)
36800 2002-02-24 02:55:00 'copy c:\*.*' will not copy the root directory of the c: disk(because it will refuse to copy that directory to itself!). If a second argument (eg ' d:\') is given, it will copy the root directory to the destination. It does not do subdirectories.
I don't use it -- xcopy is better, and earlier versions need the '/b' option to copy binaries correctly.

Xcopy will copy subdirectories if it is given the option '/s'. It will copy empty subdirectories if given the option '/e'. I think it needs '/h' to copy hidden ...
When I need it I do 'xcopy /h' to be reminded.
Guest (0)
36801 2002-02-24 07:33:00 For a fairly extensive discussion on this topic see posting 'One drive to another'
15/02/02
Guest (0)
1