Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 18th, 2005, 01:41 PM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default opening folder and return files

Hi does anybody know if there is a way to open a folder and return the files it contains back to the webpage? any help would be greatly appreciated! thanks

  #2 (permalink)  
Old February 18th, 2005, 02:13 PM
Friend of Wrox
Points: 2,473, Level: 20
Points: 2,473, Level: 20 Points: 2,473, Level: 20 Points: 2,473, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: India
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

You can use filesystemobject to open folder/files. Please check the following article:

http://www.codeproject.com/asp/ASP_a...stemObject.asp

Om Prakash
  #3 (permalink)  
Old February 18th, 2005, 02:16 PM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for that i'm now using the code below, and it is finding the file, but how do i return the filenames?

<code>
Dim filesys, demofolder, filecoll, selectfile
Set filesys = CreateObject("Scripting.FileSystemObject")
url = "\\limkusr3\data$\www\applications\AppsDB\attachme nts\" & rs("s_GUID")
Set demofolder = filesys.GetFolder(url)
set filecoll = demofolder.files
</code>

  #4 (permalink)  
Old February 18th, 2005, 02:21 PM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your help i got it to work! thanks again!



Similar Threads
Thread Thread Starter Forum Replies Last Post
opening client side folder browser in c# sauravnimesh .NET Framework 2.0 4 November 21st, 2008 07:20 AM
browsing for a folder, opening file am6019a VB How-To 5 February 21st, 2007 07:09 PM
opening a folder location JonniP Access 6 January 5th, 2007 09:01 AM
Opening a folder from VB Axxess Excel VBA 2 September 6th, 2006 05:49 AM
return files in folder Dj Kat Classic ASP Basics 2 February 9th, 2006 04:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.