This bit of code will find the newest sdat file in the server path of your choice no matter how many sdat's are in the directory.
code:
 
;
;------Finds an Superdat in the Server path
$sdatName=Dir($ServPath + "sdat*.exe")
;------Look for a more recent superdat
While $sdatName <>"" AND @ERROR = 0
If $sdatname <>""
$sname=$sdatname
EndIf
$sdatName=Dir() ; retrieve next file
Loop

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!