<%

importfolder=server.mappath("/excelfile/")
Dim fs, file, f1, fc
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set file = fs.GetFolder(importfolder)
Set fc = file.files

For Each f1 in fc
%>

i m using FSO to read and search the file in a folder name excelfile.can someone guide me how to use FSO to read the folder at another server. for example, the asp code file put in server A and then when the user run the asp file in server A, he can read the file in the folder at Server B? thanx...

Its not possible to read the files on a remote server using the ASP over http.
Yoou can only read/write files on the local machine only.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.