Tech Support > Operating Systems > MS-DOS > echo contents of a log file into another file inside the batch file? howto?
echo contents of a log file into another file inside the batch file? howto?
Posted by markm75 on October 15th, 2007


i'm trying a simple dos batch file command to get the contents of a
log file in another file..

I have a bunch of echo statements using this format:

echo "test" >> message.msg
then
echo "d:\log.log" >> message.msg

but rather than tacking on the contents of the log file.. it simply
puts "d:\log.log" in the message.msg file..

Is there a way to make this work?

Thanks in advance..

Posted by sKurt on October 15th, 2007


markm75 wrote:

@TYPE D:\LOG.LOG >>MESSAGE.MSG

--


Posted by markm75 on October 16th, 2007


On Oct 14, 11:48 pm, "sKurt" <sK...@REMOVE.inbox.com> wrote:
That was the ticket.. thanks!


Posted by sKurt on October 16th, 2007


markm75 wrote:


I get so much from here it's nice to give...

sKurt
--