Quick Search

Threads: 26,129
Posts: 108,039
Members: 19,509
Newest member: stmk69

Web Hosting


 
  #1  
Old 13 Jun 2003, 11:04 AM
babs
Guest
 
Posts: n/a
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.
Reply With Quote
  #2  
Old 13 Jun 2003, 11:21 AM
Keith's Avatar
Keith Keith is offline
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.
__________________
My Sites: THD THDF WV TC WDP ES WS IHH
New: Web Design Forums
Reply With Quote
  #3  
Old 13 Jun 2003, 11:32 AM
babs
Guest
 
Posts: n/a
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.
Reply With Quote
  #4  
Old 13 Jun 2003, 12:45 PM
Saj Saj is offline
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
Reply With Quote
  #5  
Old 13 Jun 2003, 03:51 PM
pwnm's Avatar
pwnm pwnm is offline
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
__________________
Paul Woodland,
WebDevForums Moderator
LiquidSix Hosting: Windows 2003 Plans from £9.95 / $18
PW New Media Network, DeveloperCube
Reply With Quote
  #6  
Old 22 Jul 2003, 10:56 AM
azoric's Avatar
azoric azoric is offline
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
%>
%>
__________________
* * *========
* * *========
============
============
Reply With Quote
  #7  
Old 16 Sep 2004, 08:01 PM
noeldp noeldp is offline
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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
YAWDL: Yet another web directory list bobmutch Search Engine Optimization and Marketing 0 16 Mar 2005 12:33 AM
Disable going to parent directory? brynjarh Web Hosting and Domain Names 3 27 Jan 2005 10:20 PM
Add your url to my international directory gemsergio Search Engine Optimization and Marketing 4 26 Jan 2004 06:27 PM


All times are GMT -5. The time now is 09:44 AM.


 

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forums Copyright © 2004-2010, WebDevForums.com. All Rights Reserved.