thanks for the link. I took a wack at creating my own kixtart script, you can do so much more with kixtart. I need to add a loop for failed logins to the ftp server but it works well.; Kixtart script for retrieving
; latest superdat file from McaFee's
; FTP site.
; 02/19/02 by Jason Hammond
;
$userlogin="anonymous" ; user name for ftp.nai.com
$userpass="youraddress@yourdomain.com" ; email address
$ftpdir="/pub/antivirus/superdat/intel"
$ftpsite="ftp.nai.com"
$ftpbat="ftp.scr"
$loc="c:\ftp" ; location of script files
; and flag file
Break ON
Shell "%COMSPEC% /C ftp -s:" + $loc + "\" + $ftpbat
If Not Exist($loc + "\vcheck.txt")
Shell "%COMSPEC% /c copy $loc\vcheck.txt $loc\current.log"
If not Exist($loc + "\vcheck.txt")
? "ftp login failed" ; Im working on adding a loop to
; try loggin in again.
Goto End
EndIf
EndIf
If Open(1, $loc + "\vcheck.txt") =0
$vcheck = ReadLine(1)
If Open(2, $loc + "\current.log") =0
$current = ReadLine(2)
If $vcheck <> $current
$version=$vcheck
Close (1)
Close (2)
Shell "%COMSPEC% /c copy $loc\vcheck.txt $loc\current.log"
Goto Download
EndIf
EndIf
EndIf
Goto End
ownload
If Exist($loc + "\ftpget.scr")
Del "$loc\ftpget.scr"
EndIf
Shell "%COMSPEC% /c echo open $ftpsite >$loc\ftpget.scr"
Shell "%COMSPEC% /c echo $userlogin >> $loc\ftpget.scr"
Shell "%COMSPEC% /c echo $userpass >> $loc\ftpget.scr"
Shell "%COMSPEC% /c echo CD $ftpdir >> $loc\ftpget.scr"
Shell "%COMSPEC% /c echo lcd $loc >> $loc\ftpget.scr"
Shell "%COMSPEC% /c echo get $version >> $loc\ftpget.scr"
Shell "%COMSPEC% /c echo bye >> $loc\ftpget.scr"
Shell "%COMSPEC% /c ftp -s:$loc\ftpget.scr"
:End
contents of ftp.scr
open ftp.nai.com
anonymous
youremail@yourdomain
cd /pub/antivirus/superdat/intel
dir s*.exe c:\ftp\currentd.txt
ls s*.exe c:\ftp\vcheck.txt
bye