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)
There's no way for: copy file1 + file2 + fileN targetFile
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 21
- Joined: 2006-04-12, 07:20 UTC
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
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.
Re: There's no way for: copy file1 + file2 + fileN targetFi
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 !
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 !
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
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.