cannot find file when accessing via virtual directory in classic asp

lersrodeback

New Member
i am accessing files in a virtual folder using classic asp by server objects. here is the code for getting the folder:\[code\]Set FSO = Server.CreateObject("Scripting.FileSystemObject")Dim mapPathmapPath = Server.MapPath("http://development/far/")Set farFolder = FSO.GetFolder(mapPath)\[/code\]I am getting file not found error when looping through the directory. The files are seen when i put //development/far/ in the browser. I am fairly new to asp so do not know where going wrong.this is code for when looping through the directory:\[code\]For Each item in farFolder.FilesSet matches = re.Execute(item.Name)if(matches.Count=1) thenResponse.Write ("<a target=""_blank""href=""" & item.Path & """>" & item.Name & "</a> <br>")End ifNext\[/code\]
 
Back
Top