Page 1 of 1

Concatenating Files

Posted: 09 Apr 2008 18:31
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

Re: Concatenating Files

Posted: 09 Apr 2008 19:12
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.

Posted: 09 Apr 2008 23:11
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

Posted: 10 Apr 2008 19:40
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.