rem This batch executed the FTP script embedded within the batch. All variables in the FTP rem script will be resolved. ;@echo off ;(for /f "usebackq delims=" %%A in ("%~f0") do call echo.%%A)>"%temp%\%~n0.ftp" ;ftp -i -s:"%temp%\%~n0.ftp" ;GOTO:EOF open example.com username password !:--- FTP commands below here --- cd public_html/%COMPUTERNAME% binary hash on %* disconnect bye