Need help with bat file!!!

I need to put/get files from Windows machine to Unix machine and vice-versa.

I wrote a text file "ftp1.txt" as below.

naga
naga06
cd /root/Naga
prom off
get time.unl
bye

I wrote another bat file "ftp.bat" as below.

ftp -n -s:C:\Users\Naga\Desktop\ftp1.txt IP_ADDRESS

but when i run the bat file, it keeps running and the line in the bat file is displayed in the command window and it keeps scrolling with the same line....

Pls help...

Why not ask this question in your favorite Windows forum?

The login part of the input file is incorrect. The ftp parameter -s refers to a file of real ftp commands (it is not a typeahead file).

user nagan aga06
cd /root/Naga
prom off
get time.unl
bye

Tip: You may wish to specify either ascii or binary because ftp is not going to have a default value for .unl