Greetings to experts.

There is a question how you can organize the tracking of file changes on a remote server on the local network

There is a sideboard, login and pass from him. There, with periodicity, new files fall out with a certain naming structure. It is necessary to organize the tracking of the appearance of files in the "online" mode, with the determination of the weight of the file.

If there are links or ideas, please share.

    2 answers 2

    In .NET, there is a System.IO.FileSystemWatcher class that allows you to track changes in files and subdirectories of a given directory. You can create a component that will monitor files on the local computer, on network drives, or on a remote computer (from MSDN ). The class has events whose names speak for themselves ( Created , Changed , etc.). You just have to decide how to organize such tracking:

    1. Remotely. The program monitors the directory on the remote computer and performs some actions on certain events.
    2. Locally. The program runs on the server and monitors the desired directory. In this case, for certain events, she will have to make some additional requests for notification.

      If this is a web application and if the whole structure (paths, size, date, etc.) of files and their publication is organized at the database level, then also at the database level and implement tracking of the publication of files ...

      If you want to organize semi-Hackers software, then you need to delve into TCP / IP protocols to choose the least resistance option for launching and tracking an intranet spider (bot) that would implement the task, well, C # is probably not your assistant here ...

      • no hackers. A typical application that scans for files. Everything is official. Functionality like zabbiks, if the file appeared and has a size - report it - VaLenOK007