Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to report changes in FTP server?

How to report changes in FTP server?

Scheduled Pinned Locked Moved C#
csharpsysadmintutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mkomasi
    wrote on last edited by
    #1

    Hi, I have an FTP server by some users. Each user has a folder and can add or delete a file in his specified folder. Now I want that I'm notifed by email when a user makes any change in his folder. Can I use C# to do this situation? Does FTP server provide me this situation or I have to develop a program? regards, Mehdi

    H 1 Reply Last reply
    0
    • M mkomasi

      Hi, I have an FTP server by some users. Each user has a folder and can add or delete a file in his specified folder. Now I want that I'm notifed by email when a user makes any change in his folder. Can I use C# to do this situation? Does FTP server provide me this situation or I have to develop a program? regards, Mehdi

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Doing this via FTP would be difficult - if even possible. About the only way is to poll the folders and check for recent changes. A better way would be to write a program that uses the FileSystemWatcher component to watch the directories on the server (i.e., not via FTP but on the file system itself) and alerts you of changes.

      -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups