Great! If somebody asked me, I would have suggested StrToFile(), but textmerge (which, of course, I had forgotten about - I think I never used it in practice) makes much cleaner-looking code.
Hilmar.
>You can build a batch file like this:
>
>set textmerge to 'test.bat'
>
>text
>dir
>echo Look at these DOS commands
>pause
>echo done
>pause
>endtext
>set textmerge to
>
>
>run 'test.bat'
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)