monitor file on network computer

Hi,

I want to monitor a file on other PC on network to see if its growing in size and other things. My question is how do I log on to that computer on network using C#. Also, if that computer on network requires authentication, how do I supply username and password to that computer from C# code ?

Thanks,

[322 byte] By [bilalso] at [2008-2-4]
# 1
You can use the filewebrequest in the system.Net class. The creentials property allows you to pass in the necesssary credentials. there is sample code is msdn that might help you to start with

Malar at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified