@echo off :beginn cd c:\IhrVerzeichnis\IhrOrdner dir/w choice /c:dpq Del Put Quit if errorlevel 3 goto _quit if errorlevel 2 goto _put if errorlevel 1 goto _del :_del set _command=del goto weiter :_put set _command=put goto weiter :_quit set _command=quit :weiter echo Datei eingeben echo set datname=%%4 > neues.bat fc /lb1 /n con nul | date | find " 1: " >temp.bat call temp.bat del temp.bat >nul del neues.bat >nul echo open ftp.fortunecity.com> fortune.dat echo IhrUsername>> fortune.dat echo IhrPasswort>> fortune.dat if %_command%==quit goto nolist echo ls>> fortune.dat :nolist echo %_command% %datname%>> fortune.dat ftp -s:fortune.dat if exist fortune.dat del fortune.dat set datname= cd c:\windows\desktop\Ihr Verzeichnis auf dem Desktop if not %_command%==quit goto beginn :ende echo. echo Netzverbindung trennen! set _command=