Computing.Net > Forums > Disk Operating System > xcopy HELP!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

xcopy HELP!

Reply to Message Icon

Name: Jude
Date: October 19, 2002 at 03:19:55 Pacific
OS: win 98
CPU/Ram: AMD 256k
Comment:

Please help, simple question but it's driving me nuts.
Using xcopy to copy a folder called cos and all the files even the empyt ones from c:\ to a:\ I have been using
xcopy c:\cos\*.*/e a:\
All the sub directories and files have transfered but not the folder, cos. What's missing apart from some grey matter on my part.




Sponsored Link
Ads by Google

Response Number 1
Name: Olivier FOURNIER
Date: October 19, 2002 at 08:42:40 Pacific
Reply:

Bonjour

If there is only one directory with files into to copy, you can use XCOPY without /E.

If you want to copy several subdirectories, you will use
XCOPY X:\... Y:\... /E /S (/E cannot be used without /S).


0

Response Number 2
Name: Mike Newcomb
Date: October 19, 2002 at 10:49:57 Pacific
Reply:

Check out the dos help explanation of xcopy and it appears to be working as specified, but not doing as you require.

As I understand it, if folder (or directory) COS were contained in an otherwise empty folder called MASTER (or whatever)
XCOPY C:\MASTER\*.* A: /S /E /V
would achieve what you require.

Good luck - keep us posted.


0

Response Number 3
Name: Dan Penny
Date: October 19, 2002 at 13:49:15 Pacific
Reply:

xcopy c:\cos\*.*/e a:\

Try;
xcopy c:\cos\*.*/e a:\cos\



0

Response Number 4
Name: fred6008
Date: October 19, 2002 at 18:57:27 Pacific
Reply:

I never used xcopy with wildcards that way. I would have made a directory COS on A:
and entered XCOPY C:\COS A:\COS /e /s


0

Response Number 5
Name: Mike Newcomb
Date: October 19, 2002 at 21:47:59 Pacific
Reply:

Well done Dan, I did not think of that one.

With your method XCOPY creates the output folder.

I tend to use the /V option just in case.


0

Related Posts

See More



Response Number 6
Name: EC
Date: October 19, 2002 at 22:58:52 Pacific
Reply:

I used xcopy c:\folder d:\folder /s
for copy to folder to folder


0

Response Number 7
Name: Miskva
Date: October 22, 2002 at 05:11:02 Pacific
Reply:

you original command copies only the files within C:\COS to the root of your A drive

probably some or another parameter will work, but this one will do :

mkdir a:\cos
xcopy c:\cos\*.* a:\cos

OK, not one command, but who cares


0

Sponsored Link
Ads by Google
Reply to Message Icon

copying DOS program Program too big for memor...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: xcopy HELP!

Xcopy help www.computing.net/answers/dos/xcopy-help/14531.html

xcopy www.computing.net/answers/dos/xcopy/4489.html

Inserting text into files using some DOS www.computing.net/answers/dos/inserting-text-into-files-using-some-dos/7134.html