Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I want to keep watch on newly file created on below scenario

1. Non shared folder (can we keep File watch in .NET non shared folder on shared folder using Impersonation)

2. FTP Folder (Can we have watch on FTP folder)

Thanks,
Santosh.

What I have tried:

I tried with shared folder and its working fine but our client want folder should not be shared.
Posted
Comments
Sinisa Hajnal 10-Jun-16 6:06am    
There is FileWatcher class somewhere in .NET. Look for it :)
santosh d 10-Jun-16 6:28am    
Will FileWatcher will work on non shared folder or FTP ?
Tomas Takac 10-Jun-16 6:46am    
If the folder is not shared then you cannot access it. This requirement is nonsense. Or I'm missing something. You cannot use FileSystemWatcher with FTP.
Wastedtalent 10-Jun-16 10:46am    
If it's none shared network folder, and you're using impersonation to impersonate an account with access to that folder, you could say access the c: drive with the path set to:

\\Servername\c$\

With FTP you'd need a different solution, look at ssh.NET see if there's anything useful in there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900