@echo off & setlocal set serv= set id= set pass= set /p serv=server: if not defined %serv% goto :eof set /p id=id: if not defined id goto :eof set /p pass=passwd: if not defined pass goto :eof (echo open %serv% echo user %id% echo %pass% echo put file1 echo put file2 ) > ftemp ftp -n -s ftemp ::==== end batch not sure how to get your two files, unless they are prompted for, in which case you can probably fill in the blanks for prompting etc.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.