<% ' Links to the most up to date rota as a default start point. ' Normally this will be the current year, but if for any reason it doesn't exist, ' it will link to the most recent year which *does* exist. set fso = CreateObject("Scripting.FileSystemObject") thisyear = Year(Date()) pt = left(request.ServerVariables("PATH_TRANSLATED"),instrRev(request.ServerVariables("PATH_TRANSLATED"),"\")-1) for i = thisyear - 3 to thisyear if fso.fileExists(pt & "\WatchRota" & i & ".asp") then LinkFile = "WatchRota" & i & ".asp" end if next response.redirect(LinkFile) %>