471,618 Members | 1,123 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

C#.NET reading remote host directory contents

Hi all,

I am trying to create a webpage that reads in the name of a host from
the user and then attempts to read the contents of this host, in order
to search for a particular type of file.
So once i have the hostname, something like:

1. Attempt to access <host>\share\dir
2. If success, read thru directory listing looking for certain
3. If found, process these files. Then output something back to user.

The problem i have is step 1... anyone know if it's possible to get
that done in a nice way, and have a directory structure to look thru?
The hosts in question are all on a LAN, with user ids,passwords,shares
setup so that i know them in advance.


Feb 17 '06 #1
1 2745

To access a share on a LAN, your web application should have valid
rights to access the folder.

By defaul web application runs under ASPNET account.
Impersonate your web application with valid NT credentials in the
web.config file.


Feb 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nuno Magalhaes | last post: by
3 posts views Thread by dave_nul | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.