<%if request.queryString("mode") = "view" then
filePath = request.queryString("path")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set MyFolder=fso.GetFolder(filePath)
%>
<% dim fs,f,ts set fs=Server.CreateObject("Scripting.FileSystemObject") IF fs.FileExists(filePath&"text.txt") THEN Set f=fs.GetFile(filePath&"text.txt") Set ts=f.OpenAsTextStream(1) 'ts.Write("Hello World!") 'ts.CloseSet ts=f.OpenAsTextStream(ForReading) Response.Write(ts.ReadAll) ts.Close set ts=nothing set f=nothing end if %><%'=fs.FileExists("text.txt") set fs=nothing %>
<%end if%> |
<%
passedPath = request.queryString("path")
history = request.queryString("history")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set imagePath = fso.GetFolder(server.MapPath("images\library"))
Set subFolders = imagePath.SubFolders
For Each folder in subFolders%>
&mode=view&path=<%=imagePath&"\"&folder.Name%>\><%=folder.Name%> <%Set tempImagePath = fso.GetFolder(server.MapPath("images\library\"&folder.Name)) firstFolder = folder.Name Set tempSubs = tempImagePath.subfolders if folder.Name = request.QueryString("location") then For Each tempfolder in tempSubs Set files = tempfolder.files%> --&mode=view&path=<%=tempImagePath%>\<%=tempfolder.Name%>\><%=tempfolder.Name%> <%if ((files.count-1)/2) > 0 then%> (<%=round(((files.count-1)/2),0)%>) <%end if %> <% Set tempImagePath2 = fso.GetFolder(server.MapPath("images\library\"&folder.Name&"\"&tempfolder.Name)) Set tempSubs2 = tempImagePath2.subfolders For Each tempfolder2 in tempSubs2 Set files2 = tempfolder2.files%> --&mode=view&path=<%=tempImagePath2%>\<%=tempfolder2.Name%>\><%=tempfolder2.Name%> (<%=round(((files2.count-1)/2),0)%>) <%Next%> <%Next%> <%end if%> <%Next%> |
||
| info@unclebobworld.co.uk | |||