Hi,
Raj wrote:
I want to get the file names from another virtual directory in IIS, please
let me know how can I achieve this....
The web application from which I will be accessing another virtudal
directory folder will be in the same IIS server.
ASP.NEt 2.0/C# 2.0
Raj
If your web server has Directory Browsing enabled for this virtual
folder, then it will return a HTML formatted list of files when you use
the virtual folder's URL in a web request. The file names are quite easy
to extract.
I am not aware of another way to get a list of files in a virtual
folder. What you could do is use IIS' API to retrieve the name of the
physical folder, and then use that to retrieve the content.
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch