Board index » Web Programming » ASP public folder Home Page

ASP public folder Home Page

Web Programming425
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

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

Quote
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

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...

Quote
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

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" rel="nofollow" target="_blank">www.aspfaq.com/show.asp=2311



Ray at work



"David" <davidd@sunbeltmedical.com>wrote in message

Quote
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

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...

Quote
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" rel="nofollow" target="_blank">www.aspfaq.com/show.asp=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

FSO, File Lister

www.darkfalz.com/1069/">www.darkfalz.com/1069/



--

Curt Christianson

Owner/Lead Developer, DF-Software

www.Darkfalz.com





"David" <davidd@sunbeltmedical.com>wrote in message

Quote
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" rel="nofollow" target="_blank">www.aspfaq.com/show.asp=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

"David" <davidd@sunbeltmedical.com>wrote in



Quote
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]



Quote
<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 see how that goes. I didn't test the actual code, but I noticed

that problem. The code may still be broken after that bit of code-fix.

-

Re:ASP public folder Home Page

Thanks Group all for your help,



not quite there yet, free time to complete this is expensive - maybe another

day...



David







"Scott McNair" <scott.mcnair@sfmco.takethispartout.com>wrote in message

Quote
"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 see how that goes. I didn't test the actual code, but I noticed

that problem. The code may still be broken after that bit of code-fix.





-