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. .NET (Core and Framework)
  4. A monitor for open networkfiles?

A monitor for open networkfiles?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionsysadminalgorithms
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.
  • F Offline
    F Offline
    Franz Pentenrieder
    wrote on last edited by
    #1

    hi, im searching for the class that allows me to readin the network files and session informations. under "fsmgmt.msc" i can see that connections but how can i get these in a programm? i have searched under System.Diagnostics but no result :(

    I 1 Reply Last reply
    0
    • F Franz Pentenrieder

      hi, im searching for the class that allows me to readin the network files and session informations. under "fsmgmt.msc" i can see that connections but how can i get these in a programm? i have searched under System.Diagnostics but no result :(

      I Offline
      I Offline
      ian mariano
      wrote on last edited by
      #2

      There are two ways: Use Interop Services and Windows API to do this, see Networking and Directory Services, plus a slew of other native OS functions... Or the easy way...query the WMI...System.Management Namespace, specifically the SelectQuery Class. A good reference for can be found here. With WMI, you query and do all kinds of things which are beyond the scope of this answer...just a taste of some of the things you can query:

      • Computer System Hardware Classes
      • Operating System Classes (You'll be real interested in this one for what you're looking for.)

      Good luck!

      Ian Mariano - http://www.ian-space.com/
      "We are all wave equations in the information matrix of the universe" - me

      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