@echo off
SET FTPUSER="pokemorg-gen"
SET FTPPASS="password"
SET FTPDIR="/rom/kujira/auto"
SET HOST="nin-ftp.gamefreak.co.jp"

SET ACCOUNT="%FTPUSER%,%FTPPASS%"

for %%i in (%*) do (
	if exist %%i (
		lftp -e "cd %FTPDIR% ; put %%i ; quit" -u %ACCOUNT% %HOST%
	)
)
