Using xcopy to append multiple files together Unicorn Meta Zoo #1: Why another podcast? ...
How much of a wave function must reside inside event horizon for it to be consumed by the black hole?
Where was the County of Thurn und Taxis located?
Is there any pythonic way to find average of specific tuple elements in array?
Was Dennis Ritchie being too modest in this quote about C and Pascal?
Is Diceware more secure than a long passphrase?
Raising a bilingual kid. When should we introduce the majority language?
A strange hotel
Why do distances seem to matter in the Foundation world?
Drawing a german abacus as in the books of Adam Ries
A Paper Record is What I Hamper
What was Apollo 13's "Little Jolt" after MECO?
What is /etc/mtab in Linux?
Putting Ant-Man on house arrest
Does Mathematica have an implementation of the Poisson binomial distribution?
Multiple fireplaces in an apartment building?
How do I reattach a shelf to the wall when it ripped out of the wall?
How does the mezzoloth's teleportation work?
"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"
Can you stand up from being prone using Skirmisher outside of your turn?
Bayes factor vs P value
All ASCII characters with a given bit count
Sharepoint Designer Discontinuation - software to modify existing workflows
`microtype`: Set Minimum Width of a Space
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
Using xcopy to append multiple files together
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraConcatenating files from multiple subdirectories7zip Batch Compression for a specific file extension in different foldersHow to extract a specific line in multiple text file into a single txt file on linux?Using xCopy to create entire folder structure, including root folder name and all filesCreating an executable process that identifies which .txt files in a folder include certain textCopy specific files to another foldercopy/paste only certain files types in a directoryhow to create empty text files who's name matches those in an existing folder using a batch fileWindows cmd.exe - How to prevent overwriting of output files while ffmpeg recursively processes a directory?Running a long single line batch file containing files in a folder
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a folder with many subfolders containing .xmls and files of other file types. I want to take all the .xmls from the input folder and its subfolders and append them together into a single output file. The command I'm using:
xcopy "C:input*.xml" "C:outputoutput.xml" /s
This causes a prompt asking whether or not to overwrite the destination file over and over. But, per the documenation of xcopy, "To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format)." So shouldn't the destination file be appended to, not overwritten?
windows-10 command-line
New contributor
add a comment |
I have a folder with many subfolders containing .xmls and files of other file types. I want to take all the .xmls from the input folder and its subfolders and append them together into a single output file. The command I'm using:
xcopy "C:input*.xml" "C:outputoutput.xml" /s
This causes a prompt asking whether or not to overwrite the destination file over and over. But, per the documenation of xcopy, "To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format)." So shouldn't the destination file be appended to, not overwritten?
windows-10 command-line
New contributor
add a comment |
I have a folder with many subfolders containing .xmls and files of other file types. I want to take all the .xmls from the input folder and its subfolders and append them together into a single output file. The command I'm using:
xcopy "C:input*.xml" "C:outputoutput.xml" /s
This causes a prompt asking whether or not to overwrite the destination file over and over. But, per the documenation of xcopy, "To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format)." So shouldn't the destination file be appended to, not overwritten?
windows-10 command-line
New contributor
I have a folder with many subfolders containing .xmls and files of other file types. I want to take all the .xmls from the input folder and its subfolders and append them together into a single output file. The command I'm using:
xcopy "C:input*.xml" "C:outputoutput.xml" /s
This causes a prompt asking whether or not to overwrite the destination file over and over. But, per the documenation of xcopy, "To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format)." So shouldn't the destination file be appended to, not overwritten?
windows-10 command-line
windows-10 command-line
New contributor
New contributor
edited 22 hours ago
puts
New contributor
asked 23 hours ago
putsputs
11
11
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can use the copy command to achieve the desired result:
copy /b /y "C:input*.xml" "C:outputoutput.xml"
(1) Any particular reason why you specified/b
and/y
? (2) You may have missed the fact that the OP wants to copy all the XML files from the input folder and its subfolders. How can we do a recursive directory search withcopy
?
– Scott
12 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
puts is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429203%2fusing-xcopy-to-append-multiple-files-together%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use the copy command to achieve the desired result:
copy /b /y "C:input*.xml" "C:outputoutput.xml"
(1) Any particular reason why you specified/b
and/y
? (2) You may have missed the fact that the OP wants to copy all the XML files from the input folder and its subfolders. How can we do a recursive directory search withcopy
?
– Scott
12 hours ago
add a comment |
You can use the copy command to achieve the desired result:
copy /b /y "C:input*.xml" "C:outputoutput.xml"
(1) Any particular reason why you specified/b
and/y
? (2) You may have missed the fact that the OP wants to copy all the XML files from the input folder and its subfolders. How can we do a recursive directory search withcopy
?
– Scott
12 hours ago
add a comment |
You can use the copy command to achieve the desired result:
copy /b /y "C:input*.xml" "C:outputoutput.xml"
You can use the copy command to achieve the desired result:
copy /b /y "C:input*.xml" "C:outputoutput.xml"
edited 13 hours ago
Scott
16.3k113990
16.3k113990
answered 22 hours ago
Luis Alberto BarandiaranLuis Alberto Barandiaran
763
763
(1) Any particular reason why you specified/b
and/y
? (2) You may have missed the fact that the OP wants to copy all the XML files from the input folder and its subfolders. How can we do a recursive directory search withcopy
?
– Scott
12 hours ago
add a comment |
(1) Any particular reason why you specified/b
and/y
? (2) You may have missed the fact that the OP wants to copy all the XML files from the input folder and its subfolders. How can we do a recursive directory search withcopy
?
– Scott
12 hours ago
(1) Any particular reason why you specified
/b
and /y
? (2) You may have missed the fact that the OP wants to copy all the XML files from the input folder and its subfolders. How can we do a recursive directory search with copy
?– Scott
12 hours ago
(1) Any particular reason why you specified
/b
and /y
? (2) You may have missed the fact that the OP wants to copy all the XML files from the input folder and its subfolders. How can we do a recursive directory search with copy
?– Scott
12 hours ago
add a comment |
puts is a new contributor. Be nice, and check out our Code of Conduct.
puts is a new contributor. Be nice, and check out our Code of Conduct.
puts is a new contributor. Be nice, and check out our Code of Conduct.
puts is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429203%2fusing-xcopy-to-append-multiple-files-together%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown