goto PROCESS :: FTP Script (not evaluated by batch file) open ftp.nai.com anonymous naiuser@nai.com cd /pub/antivirus/superdat/intel binary hash prompt mget sdat*.exe bye :PROCESS @echo off :: CD to temp dir in Win9X or NT+ "%temp%\" cd "%temp%" cd /d "%temp%" :: Delete any existing SDAT file for %%x in (sdat*.exe) do del %%x :: test for location of FTP program if exist %windir%\system32\ftp.exe goto NT if exist %windir%\ftp.exe goto 9X goto DONE :NT %windir%\system32\ftp.exe -s:%0 goto DONE :9X %windir%\ftp.exe -s:%0 goto DONE :DONE @echo off for %%x in (sdat*.exe) do start /w %%x /SILENT for %%x in (sdat*.exe) do del %%x cls