Forums

ASP

This topic is locked

Read content of remote folder

Posted 24 Feb 2007 13:40:24
1
has voted
24 Feb 2007 13:40:24 Marco Rossi posted:
Hi to everyone

this is my problem :

I have a dynamic SELECT code like this

<font color=brown>select name="risposta1" id="risposta1"

Set file1 = CreateObject("Scripting.FileSystemObject"
Set file2 = file1.GetFolder(server.mappath("<b>myfolder</b>/")
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="&lt;=nomefile&gt;"&gt;&lt;=nomefile&gt;/option
end if

next
/select
</font id=brown>


This SELECT shows every .swf file in <b>myfolder</b>

Now,

I need to read the .swf files in a folder located in a different domain ( like 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 in 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

Reply to this topic