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!
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.
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
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 :
Summary: I want to copy all *.mdb files within a directory that contains subdirectories, but I don't want to include the subdirectories. That is, after I use the xcopy command, I would like a directory full of...
Summary: Ok, are you meaning you want to copy a large amount of data & instead of getting insuffient disk space you want it to say insert another disk in drive a: disk full. I dont know what version of dos you...
Summary: This sounds very familiar... copy con filename then type your text (up to 127 chr), enter for a new line. F6 or CTRL-Z to close To append output to a file: 'command' >>filename for example, if you ...