Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an activex control to list files in a directory, on a webpage?

Status
Not open for further replies.

SimonDavis

Technical User
Mar 16, 2001
613
GB
Hi,

I've posted something similar in the HTML forum, but I'm not getting anywhere.

I'm trying to do something which should be simple, but i'm stumped here.

I'm making some very simple webpages for our local intranet, which do little more than display the contents of directories. I want the user to be able to select and click a file to open it.

I have succeeded in this using <iframe>, but I get no control over the display of the files - some get a list, some get icons - it's messy.

I believe the listview control will do this for me, but all I can get is a blank box on the webpage.

So the simple question is, how do I tell the activex control where to get the list of files to display?

Alternatively, am I using the wrong control? It's always possible, as in fact I shouldn't really be let loose on computers . . . I do dumb things.

Any tip appreciated. Thanks a lot.
 
You don't need an active X control to allow people to view directories on your server. The web server can be configured to do that for you. I think it would be a lot less work and more secure when done in the web server configuration.

If you must do this using an activex control then just add the drive, directory, and file listboxes to your visual basic activex control object and encapsulate their methods into your own.
 
If you are wanting to list the files on the web server using an ActiveX control then the files on the web server need to be in a shared folder as the control runs on the client machine. You can set the web server to display the contents of the directory alternatively you can use ASP and the FileSystemObject to list the files in a particular folder and have some control over what and how they are shown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top