<%@ LANGUAGE="VBScript" %> f r e e k f l y - g a l l e r y

sebastian, x-mas & new years 2001

ok ok ok.....i'm a slacker, we all know that! but here are some quick pics to satisfy all of the people who are harassing me! i really do love you guys you know! and you can thank adela for harassing me....she got me to post them tonight. anyway, more to come......i promise......but it will be about a week or so.....and i'll probably break these out and post them properly. good times in sebastian! one word of advice....don't get an ear infection and a sinus infection when you're on a skdydiving vacation.......badddddd.......

<% ListFolderContents(Server.MapPath("1")) %> <% ListFolderContents(Server.MapPath("2")) %>

<% sub ListFolderContents(path) dim fs, folder, file, item, url set fs = CreateObject("Scripting.FileSystemObject") set folder = fs.GetFolder(path) 'Display the target folder and info. ' *************I'm commenting this OUT ' Response.Write("
  • " & folder.Name & " - " _ ' & folder.Files.Count & " files, ") ' if folder.SubFolders.Count > 0 then ' Response.Write(folder.SubFolders.Count & " directories, ") ' end if ' Response.Write(Round(folder.Size / 1000) & " KB total." _ ' & "
  • " & vbCrLf) Response.Write("" & vbCrLf) ' *************I'm commenting this OUT ' ********************************************************************* 'Display a list of sub folders. Uncomment the three lines below ' ********************************************************************* ' for each item in folder.SubFolders ' ListFolderContents(item.Path) ' next ' ********************************************************************* 'Display a list of files. ' ********************************************************************* for each item in folder.Files url = MapURL(item.path) Response.Write("
    " _ & "
    " & vbCrLf) next Response.Write("" & vbCrLf) end sub function MapURL(path) dim rootPath, url ' ********************************************************************* 'Convert a physical file path to a URL for hypertext links. ' ********************************************************************* rootPath = Server.MapPath("/") url = Right(path, Len(path) - Len(rootPath)) MapURL = Replace(url, "\", "/") end function %>