task: assigning a home page to a public folder(outlook xp) that will list
all sub dir's(links), click on a dir link and all files are listed

problem: it lists the dir - just not as links

would also like help on listing contents of dir when the link is clicked

code:
<%
Dim fso
Dim Rootfolder
Dim SubFolder

set fso = Server.CreateObject("Scripting.FileSystemObject")
Set RootFolder = fso.GetFolder ("S:\SMC\Projects")
%>
<table border="0" width="100%">
<%
for each SubFolder in RootFolder.SubFolders
%>
<tr><a href="S:\SMC\<%=SubFolder.Name%>"></a><%=SubFolder.Name%></tr>
<%
Next
%>

*********************************************************************

thanks... David

Re: ASP public folder Home Page by Ray

Ray
Mon Apr 12 11:53:45 CDT 2004

Here are my thoughts, questions, and suggestions:

What does your resultant HTML look like?

Will everyone have an S drive? Perhaps you should use UNC paths.

You don't have any <td>s in your table.

Ray at work

"David" <davidd@sunbeltmedical.com> wrote in message
news:uxoan3KIEHA.1944@TK2MSFTNGP11.phx.gbl...
> task: assigning a home page to a public folder(outlook xp) that will list
> all sub dir's(links), click on a dir link and all files are listed
>
> problem: it lists the dir - just not as links
>
> would also like help on listing contents of dir when the link is clicked
>
> code:
> <%
> Dim fso
> Dim Rootfolder
> Dim SubFolder
>
> set fso = Server.CreateObject("Scripting.FileSystemObject")
> Set RootFolder = fso.GetFolder ("S:\SMC\Projects")
> %>
> <table border="0" width="100%">
> <%
> for each SubFolder in RootFolder.SubFolders
> %>
> <tr><a href="S:\SMC\<%=SubFolder.Name%>"></a><%=SubFolder.Name%></tr>
> <%
> Next
> %>
>
> *********************************************************************
>
> thanks... David
>
>



Re: ASP public folder Home Page by David

David
Mon Apr 12 14:21:46 CDT 2004

Win 2000 SBS
Office XP - on all wks.
Everyone has a "S" Drive

*** page should look like ***

Directory 1(link)
Directory 2(link)
Directory 3(link)
Directory 4(link)


click on a dir and this will list all docs in that folder...


David


"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uTYx46KIEHA.2876@TK2MSFTNGP09.phx.gbl...
> Here are my thoughts, questions, and suggestions:
>
> What does your resultant HTML look like?
>
> Will everyone have an S drive? Perhaps you should use UNC paths.
>
> You don't have any <td>s in your table.
>
> Ray at work
>
> "David" <davidd@sunbeltmedical.com> wrote in message
> news:uxoan3KIEHA.1944@TK2MSFTNGP11.phx.gbl...
> > task: assigning a home page to a public folder(outlook xp) that will
list
> > all sub dir's(links), click on a dir link and all files are listed
> >
> > problem: it lists the dir - just not as links
> >
> > would also like help on listing contents of dir when the link is clicked
> >
> > code:
> > <%
> > Dim fso
> > Dim Rootfolder
> > Dim SubFolder
> >
> > set fso = Server.CreateObject("Scripting.FileSystemObject")
> > Set RootFolder = fso.GetFolder ("S:\SMC\Projects")
> > %>
> > <table border="0" width="100%">
> > <%
> > for each SubFolder in RootFolder.SubFolders
> > %>
> > <tr><a href="S:\SMC\<%=SubFolder.Name%>"></a><%=SubFolder.Name%></tr>
> > <%
> > Next
> > %>
> >
> > *********************************************************************
> >
> > thanks... David
> >
> >
>
>



Re: ASP public folder Home Page by Ray

Ray
Mon Apr 12 13:25:17 CDT 2004

What does the HTML SOURCE look like? From your orginal post, it sounded as
though you just wanted to link to file:// links that would open explorer.exe
with at the path clicked on. Maybe what you're looking for is something
like this. ?

http://www.aspfaq.com/show.asp?id=2311

Ray at work

"David" <davidd@sunbeltmedical.com> wrote in message
news:eIkBOqLIEHA.2236@TK2MSFTNGP10.phx.gbl...
> Win 2000 SBS
> Office XP - on all wks.
> Everyone has a "S" Drive
>
> *** page should look like ***
>
> Directory 1(link)
> Directory 2(link)
> Directory 3(link)
> Directory 4(link)
>
>
> click on a dir and this will list all docs in that folder...
>
>
> David
>
>
> "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> message news:uTYx46KIEHA.2876@TK2MSFTNGP09.phx.gbl...
> > Here are my thoughts, questions, and suggestions:
> >
> > What does your resultant HTML look like?
> >
> > Will everyone have an S drive? Perhaps you should use UNC paths.
> >
> > You don't have any <td>s in your table.
> >
> > Ray at work



Re: ASP public folder Home Page by David

David
Mon Apr 12 14:43:37 CDT 2004

Ray, I posted the asp source code - here it is again, I would like a simple
text listing of the dir names as links, that when you click on a link the
list of dir is replaced with a page that displays all docs in that dir. as
links - click on a doc link and the doc opens. I don't need to open
explorer.exe


<%@ Language=VBScript %>
<HTML>
<HEAD>
</HEAD>
<BODY>

<table border="0" width=100%>
<tr bgcolor="#8080C0">
<td>&nbsp;Project&nbsp;List</td>
</tr>
</table>

<%
Dim fso
Dim Rootfolder
Dim SubFolder

set fso = Server.CreateObject("Scripting.FileSystemObject")
Set RootFolder = fso.GetFolder ("S:\SMC\Projects")
%>
<table border="0" width="100%">
<%
for each SubFolder in RootFolder.SubFolders
%>
<tr><td><a
href="S:\SMC\<%=SubFolder.Name%>"></a><%=SubFolder.Name%></td></tr>
<%
Next
%>
</table>
</BODY>
</html>



"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ONilCuLIEHA.2236@TK2MSFTNGP10.phx.gbl...
> What does the HTML SOURCE look like? From your orginal post, it sounded
as
> though you just wanted to link to file:// links that would open
explorer.exe
> with at the path clicked on. Maybe what you're looking for is something
> like this. ?
>
> http://www.aspfaq.com/show.asp?id=2311
>
> Ray at work
>
> "David" <davidd@sunbeltmedical.com> wrote in message
> news:eIkBOqLIEHA.2236@TK2MSFTNGP10.phx.gbl...
> > Win 2000 SBS
> > Office XP - on all wks.
> > Everyone has a "S" Drive
> >
> > *** page should look like ***
> >
> > Directory 1(link)
> > Directory 2(link)
> > Directory 3(link)
> > Directory 4(link)
> >
> >
> > click on a dir and this will list all docs in that folder...
> >
> >
> > David
> >
> >
> > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> > message news:uTYx46KIEHA.2876@TK2MSFTNGP09.phx.gbl...
> > > Here are my thoughts, questions, and suggestions:
> > >
> > > What does your resultant HTML look like?
> > >
> > > Will everyone have an S drive? Perhaps you should use UNC paths.
> > >
> > > You don't have any <td>s in your table.
> > >
> > > Ray at work
>
>



Re: ASP public folder Home Page by Curt_C

Curt_C
Mon Apr 12 13:48:00 CDT 2004

FSO, File Lister
http://www.darkfalz.com/1069/

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


"David" <davidd@sunbeltmedical.com> wrote in message
news:ez%23yb2LIEHA.3356@TK2MSFTNGP11.phx.gbl...
> Ray, I posted the asp source code - here it is again, I would like a
simple
> text listing of the dir names as links, that when you click on a link the
> list of dir is replaced with a page that displays all docs in that dir. as
> links - click on a doc link and the doc opens. I don't need to open
> explorer.exe
>
>
> <%@ Language=VBScript %>
> <HTML>
> <HEAD>
> </HEAD>
> <BODY>
>
> <table border="0" width=100%>
> <tr bgcolor="#8080C0">
> <td>&nbsp;Project&nbsp;List</td>
> </tr>
> </table>
>
> <%
> Dim fso
> Dim Rootfolder
> Dim SubFolder
>
> set fso = Server.CreateObject("Scripting.FileSystemObject")
> Set RootFolder = fso.GetFolder ("S:\SMC\Projects")
> %>
> <table border="0" width="100%">
> <%
> for each SubFolder in RootFolder.SubFolders
> %>
> <tr><td><a
> href="S:\SMC\<%=SubFolder.Name%>"></a><%=SubFolder.Name%></td></tr>
> <%
> Next
> %>
> </table>
> </BODY>
> </html>
>
>
>
> "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> message news:ONilCuLIEHA.2236@TK2MSFTNGP10.phx.gbl...
> > What does the HTML SOURCE look like? From your orginal post, it sounded
> as
> > though you just wanted to link to file:// links that would open
> explorer.exe
> > with at the path clicked on. Maybe what you're looking for is something
> > like this. ?
> >
> > http://www.aspfaq.com/show.asp?id=2311
> >
> > Ray at work
> >
> > "David" <davidd@sunbeltmedical.com> wrote in message
> > news:eIkBOqLIEHA.2236@TK2MSFTNGP10.phx.gbl...
> > > Win 2000 SBS
> > > Office XP - on all wks.
> > > Everyone has a "S" Drive
> > >
> > > *** page should look like ***
> > >
> > > Directory 1(link)
> > > Directory 2(link)
> > > Directory 3(link)
> > > Directory 4(link)
> > >
> > >
> > > click on a dir and this will list all docs in that folder...
> > >
> > >
> > > David
> > >
> > >
> > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> > > message news:uTYx46KIEHA.2876@TK2MSFTNGP09.phx.gbl...
> > > > Here are my thoughts, questions, and suggestions:
> > > >
> > > > What does your resultant HTML look like?
> > > >
> > > > Will everyone have an S drive? Perhaps you should use UNC paths.
> > > >
> > > > You don't have any <td>s in your table.
> > > >
> > > > Ray at work
> >
> >
>
>



Re: ASP public folder Home Page by Scott

Scott
Mon Apr 12 14:51:22 CDT 2004

"David" <davidd@sunbeltmedical.com> wrote in
news:uxoan3KIEHA.1944@TK2MSFTNGP11.phx.gbl:

> task: assigning a home page to a public folder(outlook xp) that will
> list all sub dir's(links), click on a dir link and all files are
> listed
>
> problem: it lists the dir - just not as links
>
> would also like help on listing contents of dir when the link is
> clicked
>
> code:
[snip]

> <tr><a
> href="S:\SMC\<%=SubFolder.Name%>"></a><%=SubFolder.Name%></tr>

You're going to kick yourself for this one:

Your subfolder name is outside the <a> tag. Change the line to

<tr><a href="S:\SMC\<%=SubFolder.Name%>"><%=SubFolder.Name%></a></tr>

and s