Concatenating Files

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
paul99
Posts: 1
Joined: 09 Apr 2008 18:29

Concatenating Files

Post by paul99 »

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

admin
Site Admin
Posts: 60590
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Concatenating Files

Post by admin »

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
Hi!

Scripting will offer this in one of the coming versions, probably 7.20.

j_c_hallgren
XY Blog Master
Posts: 5824
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

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
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.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

In script form:

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""");
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.

Post Reply