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. Folder Events

Folder Events

Scheduled Pinned Locked Moved C#
question
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.
  • S Offline
    S Offline
    Sephrenia
    wrote on last edited by
    #1

    How do I listen to events happening in any particular folder? (e.g. if a new file has been added to the folder or a file is deleted from the folder.)

    J 1 Reply Last reply
    0
    • S Sephrenia

      How do I listen to events happening in any particular folder? (e.g. if a new file has been added to the folder or a file is deleted from the folder.)

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      System.IO.FileSystemWatcher There is a cavet though: (from the docs)

      "FileSystemWatcher only works on Windows 2000 and Windows NT 4.0.
      Remote computers must have one of these platforms installed for the
      component to function properly. However, you cannot watch a remote Windows
      NT 4.0 computer from a Windows NT 4.0 computer."

      I'm not familiar with the respective Win32 APIs, but if this cavet doesn't exist there you could write some managed C++ to use the APIs directly, allowing you to target Win98/ME. James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

      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