473,657 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP directory browsing page

I'm using the code found at http://support.microsoft.com/?kbid=224364 called
Creating a Directory Browsing Page Using ASP.

The code works fine. I would like to find a way NOT to show hidden files or
folders. I don't know (if it's possible) how to test for the hidden
attrobute and create an IF condition that will allow only non-hidden files
and folders to show up.

Also, can anyone suggest how to add an "up directory" link (like you might
see in Windows Explorer) to this page?

Thanks for any help you can offer.

Stephen
Jul 19 '05 #1
3 2561
"Stephen Green" <sg*******@spam charter.net> wrote in message
news:Oe******** ******@TK2MSFTN GP14.phx.gbl...
I'm using the code found at http://support.microsoft.com/?kbid=224364
called
Creating a Directory Browsing Page Using ASP.

The code works fine. I would like to find a way NOT to show hidden files
or
folders. I don't know (if it's possible) how to test for the hidden
attrobute and create an IF condition that will allow only non-hidden files
and folders to show up.

Also, can anyone suggest how to add an "up directory" link (like you might
see in Windows Explorer) to this page?

Thanks for any help you can offer.


Can we stick to the original thread?

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #2
"Tom Kaminski [MVP]" wrote in message
news:ch******** **@kcweb01.netn ews.att.com...
: "Stephen Green" wrote in message
: news:Oe******** ******@TK2MSFTN GP14.phx.gbl...
: > I'm using the code found at http://support.microsoft.com/?kbid=224364
: > called
: > Creating a Directory Browsing Page Using ASP.
: >
: > The code works fine. I would like to find a way NOT to show hidden
files
: > or
: > folders. I don't know (if it's possible) how to test for the hidden
: > attrobute and create an IF condition that will allow only non-hidden
files
: > and folders to show up.
: >
: > Also, can anyone suggest how to add an "up directory" link (like you
might
: > see in Windows Explorer) to this page?
: >
: > Thanks for any help you can offer.
:
: Can we stick to the original thread?

Where is it?
Jul 19 '05 #3
"Roland Hall" <nobody@nowhere > wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
"Tom Kaminski [MVP]" wrote in message
news:ch******** **@kcweb01.netn ews.att.com...
: "Stephen Green" wrote in message
: news:Oe******** ******@TK2MSFTN GP14.phx.gbl...
: > I'm using the code found at http://support.microsoft.com/?kbid=224364
: > called
: > Creating a Directory Browsing Page Using ASP.
: >
: > The code works fine. I would like to find a way NOT to show hidden
files
: > or
: > folders. I don't know (if it's possible) how to test for the hidden
: > attrobute and create an IF condition that will allow only non-hidden
files
: > and folders to show up.
: >
: > Also, can anyone suggest how to add an "up directory" link (like you
might
: > see in Windows Explorer) to this page?
: >
: > Thanks for any help you can offer.
:
: Can we stick to the original thread?

Where is it?


in microsoft.publi c.inetserver.ii s ...

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1405
by: MeAndI | last post by:
Hi, it is possible to add ASP code in the page displayed during the directory browsing. This page is returned by windows and lists all the files and directories contained in the current directory. The page that I'm talking about is something like: Server IP address - /current directory/
26
2469
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso = CreateObject("Scripting.FileSystemObject") set fold = fso.GetFolder(folderspec) for each subfolder in fold.subFolders Response.Write(subfolder.name & "<br>")
8
829
by: Opa | last post by:
Hi, Does anyone know how to get a list of files for a given directory from a given url. I have the following, but get an error indicating that URI formats are not supported. System.IO.DirectoryInfo di di = new System.IO.DirectoryInfo("http://www.websitehere.com/files/"); System.IO.FileInfo rgFiles = di.GetFiles("*.jpg");
1
1221
by: Big Tony | last post by:
Is it possible to specify a global default page for a virtual directory? My Virtual directory has 111 subfolders and I do not want to copy a default.aspx to each one. It is set to allow directory browsing and I have a custom page that I would like to use in every folder without copying it over and over again.
0
1656
by: Tim Smith | last post by:
Dear All, Uncovered a problem with a home grown site replicator. We have directory browsing enabled to allow our remote clients to "dynamically discover" new files/directories (sites) we have deployed. As it turns out, some application groups are using our tool as a way to transfer dump files from our datawarehouse. Everything has been working great.
5
2702
by: GenCode | last post by:
What is the best way to read a "readable" web directory... I know I can do this Client.DownloadFile("http://www.mydomain.com/readabledir/", c:\ \dir.txt"); But that gives me the html and all the other tags...all I want is a directory listing of all the *.gif in this dir and not all the html Now I know I can parse the html to get the gif file names...but I
2
3053
by: Joe Kovac | last post by:
Hi! I have a Web Site, where I turned directory browsing off. I want only one sub folder to be browsable: e.g. MyApp/Files/... How do I do that? Any setting in the web.config? Thanks Joe
1
2088
by: SGilch | last post by:
I am new to javascript, and wondering if it is capable of implementing a browsing mechanism for the browser to upload the names of files in a client side directory to the server. The client would select a local directory through its web browser based on a page from the server and when hitting the submit button would upload a list of the files in the directory. So, I am looking for a way where the client can: - click a browse button on the...
3
1406
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I got latest from an ASP .NET project from TFS. With the project loaded in Visual Studio, I opened a vb source file from this web project, and pressed F5 to run the project. IE opens, and displays the source folders from the application, the directory Why is this, what am I doing wrong? Thanks
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8730
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.