rem Embed FTP script into a batch script. Add this line at the beginning of the FTP script: rem @ftp -i -s:"%~f0"&GOTO:EOF @ftp -i -s:"%~f0"&GOTO:EOF open example.com username password !:--- FTP commands below here --- lcd c:\MyLocalDirectory cd public_html/MyRemoteDirectory binary mput "*.*" disconnect bye