ok no idea if this is the best way of doing this but it worked for me before.
create a file with the commands you want to run, say commands.txt in here put for example:
open hostname
username
password
cd /tmp/
put c:\myfile
bye
then in your batch file, say ftp.bat have:
ftp -s:commands.txt
anyway i think you get the idea.
|