 |
Threads: 26,129
Posts: 108,039
Members: 19,509
|
 |
|
Web Hosting |
General Web Hosting
Platform Based Hosting
Programmer's Hosting
Special Need's Hosting
Web Hosting Resources
|
|
|
 |
|
|
 |

13 Jun 2003, 11:04 AM
|
|
|
|
IIS 5 directory listings
I wonder if anyone knows a lot about IIS. I have an internal site where I work, and I often need to link to directories full of files, and IIS handily allows directory listing as an option when setting up hosting. The problem I have is that I want to customise the output from this. By default the local path is shown in big text, and it shows edit dates and sizes and lots of other stuff which is totally surplus to my needs. Is there a way to customise the output on this, so I can keep it in line with the design of the site?
If not, are there any handy Javascript or similar files which do the same (effectively parse the directory and output an html page), which will let me customise the output?
I've tried searching but have had no luck so far.
oh yeah p.s. Does anyone know if it's possible to force IE to use the original program to open a file linked to, rather than embedding it in the current window/frame.
|

13 Jun 2003, 11:21 AM
|
 |
Freelance Web Designer
|
|
Join Date: Nov 2000
Location: Dublin, Ireland
Posts: 2,491
|
|
|
Have you tried adding an index.html file to the directory and using that to display the contents of the directory instead? It might work, but i've not tried it before myself.
|

13 Jun 2003, 11:32 AM
|
|
|
|
How do you mean, like a preformatted index with the body empty?
I can't see how I'd specify where to put the generated part of the page.
|

13 Jun 2003, 12:45 PM
|
|
Established Member
|
|
Join Date: Jan 2003
Location: USA
Posts: 1,712
|
|
|
You mean the fileinfo in the file listing? I'm not sure how you would go about doing that, but I'm sure there a template somewhere in the IIS folder.
__________________
-Saj
|

13 Jun 2003, 03:51 PM
|
 |
The Simpsons Doctor Guy
|
|
Join Date: Jan 2001
Location: Worthing, UK
Posts: 839
|
|
|
As far as I know, you'd need a script to do it (ASP probably be best since its an IIS server) - It wouldn't be particularly complicated, so there might be a few free ones around - try hotscripts.com or planetsourcecode.com
|

22 Jul 2003, 10:56 AM
|
 |
Your webguy since 1996
|
|
Join Date: Jul 2002
Location: Ohio
Posts: 157
|
|
|
SOLUTION
heres' what to do in your index.asp file
<%
Dim objFSO, objFile, objFolder, iNum
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder (server.MapPath("/my/directory/"))
iNum = 1
For Each objFile in ObjFolder.Files
if objFile.Name <> "index.asp" Then
response.write( objFile.name )
iNum= iNum + 1
Next
Set objFolder= Nothing
set objFSO = NOthing
%>
%>
__________________
* * *========
* * *========
============
============
|

16 Sep 2004, 08:01 PM
|
|
Newbie
|
|
Join Date: Sep 2004
Posts: 1
|
|
|
Writing a default.asp page is pretty easy. However, how do you use it to replace the system default, so you don't have to put a copy in every directory and subdirectory for which you allow list access?
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:44 AM.
|