RBar,
just put the following in your batch file that should do what u want.
bteq < bteqscript > bteqoutput
Tdatgod what if the logon command is in the BTEQ script file itself. Is it necessary to give the following command. Here bteq is windows version or dos version.
bteq .logon tdp/user,passwd < script > script.out
Sridharan