[thelist] Directory Listing
Matthias Ritzkowski
Matt at grndwtr.com
Wed Jun 20 11:12:51 CDT 2001
I think you need to give permissions on <separate server> for IUSR_Webserver
before you can pull this one off.
AFAIK FSO only works locally, on the actual webserver.
I had to copy files to achieve what you are trying ...
Matthias
-----Original Message-----
From: Hoenig, Robert [mailto:rhoenig at gilmanassembly.com]
Sent: Wednesday, June 20, 2001 11:32
To: 'thelist at lists.evolt.org'
Subject: [thelist] Directory Listing
I'm trying to create a page that will pull folders out of a directory and
list them on a page. The Folder I'm pulling from is on a separate server
than the web server. Here is the code I'm trying to use but it's not
returning anything. The folder is shared.
foldername = \\servername\foldername
Dim objFSO 'FileSystemObject variable
Dim objFolder 'Folder variable
Dim objItem 'Variable used to loop through the contents of the
folder
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath(foldername))
Response.Write("<br>Contents of: " & objFolder)
For Each objItem in objFolder.SubFolders
Response.Write(objItem.Name )
Next
Any help would be appreciated.
Robert
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list