Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi people!
I have a little Problem!
The job is to build a database via DTS where the source is one textfile.Its now like this that this textfile has to be build of several textfiles.
it would be no Problem i thought just to start a dos shell then do this:
"type *.txt > all.txt" then one file is created includig the contents of all the textfiles, but heres the s---ty part:
The textfiles a delimited with an LF, but at the end of every textfile ther is no delimiter!So the question is how can i insert a string at the end of serveral text files ??? Is there a tool or something?
Ive searched the ned but found nothing!PLEEEEASE anybody : HELP! I need this in my work!
thanx very much in advance

If I understood, this script should work for you:
@Echo Off
:: JTEXT.BAt Syntax: JTEXT Source Dest String
:: Ex: JTEXT C:\MyDir\*.txt C:\OutDir\All.txt ****If "%1"=="[EXEC]" GoTo EXEC
For %%A in (%1) Do Call Jtext [EXEC] %%A %2 %3
GoTo EXIT:EXEC
Shift
Type %1>> %2
Echo %3>> %2:EXIT
That joins all files into one and appends the character string you want at the end of each source text file.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |