Does anyone know an easy way to concatenate or append multiple files located within a single folder? I'm looking to concatenate the contents into a new file.
Thanks
Concatenating Files
-
- Site Admin
- Posts: 60590
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Concatenating Files
Hi!paul99 wrote:Does anyone know an easy way to concatenate or append multiple files located within a single folder? I'm looking to concatenate the contents into a new file.
Thanks
Scripting will offer this in one of the coming versions, probably 7.20.
FAQ | XY News RSS | XY Twitter
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Are these plain text files or binary or what?
Because if they're text or binary files, one can do it via DOS...here's just one site I found via Google "concatenate files dos" search that describes it:
http://www.easydos.com/copy.html
Because if they're text or binary files, one can do it via DOS...here's just one site I found via Google "concatenate files dos" search that describes it:
http://www.easydos.com/copy.html
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
In script form:
Creates/Appends the file "<curpath>\Concatenated.txt"
If you change the /C to a /K it will leave the command prompt open so you can get a visual confirmation about what happened.
Code: Select all
Focus("List");
Set("$cb_backup", "<clipboard>");
#101;
RegExReplace("$cb", "<clipboard>", "^(.+)\r\n", "+""$1""");
CopyText("$cb_backup");
SubStr("$cb", "$cb", "1", );
Open("""cmd"" /C copy $cb ""<curpath>\Concatenated.txt""");
If you change the /C to a /K it will leave the command prompt open so you can get a visual confirmation about what happened.