Concatenate two files line by line

I have two .txt files.  I am trying to concatenate both files line by line.

Let's say file1 is:
Hello
my
name
is
inf2300

and file2 is:
123
456
789
012
345

I want file3 to be:
Hello 123
my 456
name 789
is 012
inf2300 345

Is that possible using a batch file or will I have to use a vb script?
inf2300Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
Nearly everything is possible in batch (as long as you're talking about batch in NT or later ...)
This one should work on W2k or later; just define the file names at the beginning. If the files don't have an equal amount of lines, the reuslt will have the number of lines of the shorter file.

@echo off
setlocal enabledelayedexpansion
set File1=D:\Temp\test1.txt
set File2=D:\Temp\test2.txt
set ResultFile=D:\Temp\test3.txt
set TempFile=D:\Temp\test.tmp

if exist "%ResultFile%" del "%ResultFile%"
type "%File2%" | find /v /n "" >"%TempFile%"
set i=1
for /f "delims=" %%a in ('type "%File1%"') do (
  for /f "tokens=1* delims=[]" %%m in ('type "%TempFile%"') do (
    if [%%m]==[!i!] (
      echo %%a %%n
      >>"%ResultFile%" echo %%a %%n
    )
  )
  set /a i+=1
)
del "%TempFile%"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.