I will try to give an example
create a text file
FTPInput.txt
 Code:
open ftp.microsoft.com
user anonymous pass anonymous
cd ResKit/win2000
mget jt.*
y
quit

now perform this command
 Code:
ftp -n -s:C:\PathTo\ftpinput.txt

You will see that jt.zip is downloaded to your current directory.
Here is some documentation from Microsoft
Using FTP Batch Scripts


Edited by Witto (2007-08-13 06:20 PM)
Edit Reason: Added link to Microsoft KB article