|
Home > Archive > IIS ASP > February 2007 > view content of remote folder
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
view content of remote folder
|
|
| Marco Firenze 2007-02-25, 1:16 pm |
| Hi to everyone
this is my problem :
I have a dynamic SELECT code like this
<select name="risposta1" id="risposta1" >
<% Set file1 = CreateObject("Scripting.FileSystemObject")
Set file2 = file1.GetFolder(server.mappath("myfolder/"))
Set file3 = file2.Files
For Each file in file3 %>
<%Estensione=right(file.name,3)%>
<%Lunghezza=len(file.name)%>
<%differenza=lunghezza-4%>
<%nomefile=left(file.name,differenza)%>
<% if estensione="swf" then %>
<option value="<%=nomefile%>"><%=nomefile%></option>
<% end if %>
<% next %>
</select>
This SELECT shows every .swf file in myfolder/
Now,
I need to read the .swf files in a folder located in a different
domain ( like http://www.otherdomain.com/myfolder/ )
of course otherdomain.com is mine and i know user and password
the question is :
what should i write to read this folder ? should i change permission
to myfolder in otherdomain.com ? how?
Should I use policy files like crossdomain.xml ? if yes, how?
And... I think that FileSystemObject works in local but not in remote;
what should i write to view folders in remote?
thankyou for your help
Marco
| |
| Bob Barrows [MVP] 2007-02-25, 1:16 pm |
| Marco Firenze wrote:
>
> I need to read the .swf files in a folder located in a different
> domain ( like http://www.otherdomain.com/myfolder/ )
>
> of course otherdomain.com is mine and i know user and password
>
> the question is :
>
> what should i write to read this folder ? should i change permission
> to myfolder in otherdomain.com ? how?
>
> Should I use policy files like crossdomain.xml ? if yes, how?
>
> And... I think that FileSystemObject works in local but not in remote;
> what should i write to view folders in remote?
>
http://www.aspfaq.com/show.asp?id=2168
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
|
|
|
|