pause ECHO +++++++++++++++++++++++++++++ set f=c:\ftpc.txt set i=c:\log.txt cd c:\fast\ dir c:\fast\ /b /ad>names.txt FOR /F %%c in (names.txt) do ( rar32 a c:\fast\%%c.rar %%c echo open egluewebdemo.com>%f% echo user egwdemo demoegw2008>>%f% echo binary>>%f% echo cd www>>%f% echo lcd C:\fast>>%f% echo put %%c.rar>>%f% echo bye>>%f% ftp -n -d -s:%f% echo %f%>>%i% del /q %%c.rar ) REM - ECHO ARCHIVED AND DELETED--ERROR MAY HAPPEN pause