connecting to the file server with credentials

hi all,

i have file serve,files in fileserver ,full qualtfied path of the folders is \19.78.67.89\edi\in ,acess this folder which is in same domain to get the files,here i need to connect to server by providing the credentials and poll the files on schedular basis,so can any one tell how to connect to the file server by credentials with domain\userid and password to get the files and close the session of the file server.

regards,
anil kumar e

If running IS as a Windows service, make sure the service is running under a domain account and that the account has rights to the server and directory you need to access.

You can then use a file polling port to poll the directory.