PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which one of the following corrections needs to be made?

Consider the following script:
<SCRIPT LANGUAGE=VBScript RUNAT = (SERVER)>
Function FileLastMod()
Dim loFs, lsFile, lsPath, loFilem, ldLast

Set loFs = Server.CreateObject(“Scripting.FileSystemObject”)
lsFile = Request.ServerVariables(“SCRIPT_NAME”)
lsPath = Server.MapPath(lsFile)
Set loFile = loFs.GetFile(lsPath)
ldLast = loFile.DateLastModified
Set loFile = Nothing
Set loFs = Nothing
FileLastMod = CStr(FormatDateTime(ldLast, 2))
End Function
</SCRIPT>
Which one of the following corrections needs to be made?


Page 161 of 263« First...102030...159160161162163...170180190...Last »