|
|
|
|
|
| | |
| |
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
ASP - Show Remote Directory Contents Using ASP - This one |
|
From: |
Mauro |
|
Date: |
4/25/2001 3:33:59 PM |
|
IP: |
200.255.122.6 |
I have a ASP application in a server. It has a menu with 5 choices, one of then is a link to another ASP file in other computer that shows the contents of this remote computer, but it doesn´t work. I know how to show the contents of a directory in the computer that the application is running but a remote directory it doesn´t work, I using something like we can see in http://www.powerasp.com/content/code-snippets/show-directory-contents.asp
To see contents of a local directory I´m using this:
strpathinfo = request.servervariables("PATH_INFO")
strphysicalpath = server.mappath(strpathinfo)
set objfso = CreateObject("Scripting.FileSystemObject")
set objfile = objfso.getfile(strphysicalpath)
set objfolder = objfile.parentfolder
set objfoldercontents = objfolder.files
Please if you have some ASP code that do this or some advice send to me.
Thanks, Mauro |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|