%@ LANGUAGE = VBScript %> <% Option Explicit '********************************************************************************** ' ' THE FOLLOWING PROPERTIES NEEDS TO BE SET/CHECKED BEFORE THIS WILL WORK: ' ' strMessageFileList ' The text file which will store the list of messages. It needs to ' match the value of "strMessageFileList" set in "process.asp" ' String Value ' Example: "D:\www\ucsc\news_events\messages\00-01\filelist.txt" ' ' When you want to start a new cycle of message (as in a new school year), ' simply create a new folder on the server (such as "01-02") and change ' the properties in this file as well as those in "process.asp" to match the ' new folder. You will also need to create a new, blank, text file in the new ' folder to serve as the filelist. ' '********************************************************************************** DIM strMessageFileList ' CONFIGURE HERE '*********Initial reference strMessageFileList = "e:\inetpub\wwwroot\toplevel\news_events\messages\02-03\filelist.txt" ' This section retrieves the filelist ' and then creates an array containing each line ' in the text file, i contains the line count DIM objFS, i, strLinkArray() SET objFS = CreateObject("Scripting.FileSystemObject") DIM strIndexFile SET strIndexFile = objFS.OpenTextFile(strMessageFileList, 1) i = 0 DO WHILE NOT strIndexFile.AtEndOfStream REDIM PRESERVE strLinkArray(i) strLinkArray(i) = strIndexFile.ReadLine i = i + 1 LOOP %>
Skip |
Administrative messages archive: