This is a sample script that's quite similar to the Upload.CMD I use with PasteOff (fixed the download links, by the way), to upload images to my blog site.
Customize the variables at the top, and upload away...
As a note, it is really important not to have trailing spaces after the SET lines or after the Echo %VAR% lines - they'll break it, and you'll be wondering why...
@echo offEcho Creating FTP ScriptSET FTPHOST=ftp.example.comSET FTPUSR=DOMAIN\USERSET FTPPAS=passwordSET FTPDIR=/BlogImages
echo %FTPUSR%> uploadfile.txtecho %FTPPAS%>> uploadfile.txtREM echo %FTPPAS%>> uploadfile.txtecho CD %FTPDIR%>> uploadfile.txtecho PUT %1>> uploadfile.txtecho QUIT>> uploadfile.txt
Echo Performing FTP Uploadftp -s:uploadfile.txt %FTPHOST% >> ftplog.txt
Echo Deleting Upload FileREM better to delete it than leaving more passwords lying aroundEcho.>>ftplog.txtEcho Deleting File >> ftplog.txtDel uploadfile.txt >> ftplog.txt
Thank you for
this great script!