Hello,

I found an interesting Directory Listing asp code from
http://support.microsoft.com/kb/q224364.
It lists stuff perfect easy customisable.. But there is one problem. I
want to exclude the Default.asp from listing in the directory listing.
Someone knows how to edit this script, so it excludes Default.asp.

Thanks in advance.

Sjaak Roest

Re: Article ID 224364 by Kristofer

Kristofer
Fri Jun 22 16:20:27 CDT 2007

Check if the name of the file is "default.asp" and don't print it out on
the page. Should be fairly easy. Something like:

...

If strFile <> "default.asp" Then

'This is where the stuff is printed

End If

...


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


sroest@opella.nl wrote:

>Hello,
>
>I found an interesting Directory Listing asp code from
>http://support.microsoft.com/kb/q224364.
>It lists stuff perfect easy customisable.. But there is one problem. I
>want to exclude the Default.asp from listing in the directory listing.
>Someone knows how to edit this script, so it excludes Default.asp.
>
>Thanks in advance.
>
>Sjaak Roest