There's no way for: copy file1 + file2 + fileN targetFile

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
miroslav.vrlik
Junior Member
Junior Member
Posts: 21
Joined: 2006-04-12, 07:20 UTC

There's no way for: copy file1 + file2 + fileN targetFile

Post by *miroslav.vrlik »

Scenario: In log file analysis process I often need concatenating several log files (e.g. from several days) into one file.
MS-DOS: copy file1 + file2 + file3 + ... + fileN targetFile

In TC, three possible approaches fail:
(1) "Combine Files" requires exact filenames
(2) copying files to one filename throws "You cannot move or copy more than one file to a single file!"
(3) copying a file to existing filename is missing "Append" option at Overwrite options

I think TC could enable at least one way to concatenate files.
Thanks!

Miroslav

P.S. there's also a pool at ghisler.ch/board/viewtopic.php?t=28059 where you can vote for way most intuitive for you to achieve concatenation (sorry for non-clickable link but forum won't let post me true URL)
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Hello miroslav.vrlik,
The MS-DOS way should work fine. Apart from that, Append should be accessible in the overwrite dialog if you do not use the "Standard" copy method but the "Default" one.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: There's no way for: copy file1 + file2 + fileN targetFi

Post by *nsp »

If you have ansi names and use text files, and You can use TCBL/or Balderstrom script for This !

TCBL Sample
pgm : <path to>\tcbl.exe
param: %L del %T\Target.log $( TYPE $f >> %T\Target.log

THis will do the job if your files are in the good order !
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I forgot about that script, here's an updated MergeFiles.cmd.
Last edited by Balderstrom on 2010-12-13, 11:08 UTC, edited 1 time in total.
Post Reply