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. handled files

handled files

Scheduled Pinned Locked Moved C#
5 Posts 3 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.
  • L Offline
    L Offline
    lost_in_code
    wrote on last edited by
    #1

    how can i get all files handled by a specific process without using WMI in c#?

    L 1 Reply Last reply
    0
    • L lost_in_code

      how can i get all files handled by a specific process without using WMI in c#?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Do you mean this one? foreach(ProcessModule pm in Process.GetCurrentProcess().Modules) { Console.WriteLine(pm.FileName); }

      L 1 Reply Last reply
      0
      • L Lost User

        Do you mean this one? foreach(ProcessModule pm in Process.GetCurrentProcess().Modules) { Console.WriteLine(pm.FileName); }

        L Offline
        L Offline
        lost_in_code
        wrote on last edited by
        #3

        No,I didn't mean modules of a process. What i need get non executable files associated to a process like .doc , .pdf

        0 1 Reply Last reply
        0
        • L lost_in_code

          No,I didn't mean modules of a process. What i need get non executable files associated to a process like .doc , .pdf

          0 Offline
          0 Offline
          0x3c0
          wrote on last edited by
          #4

          Something like this?

          L 1 Reply Last reply
          0
          • 0 0x3c0

            Something like this?

            L Offline
            L Offline
            lost_in_code
            wrote on last edited by
            #5

            one of running processes in the windows task manager is winword.exe I need to retrieve all running files with .doc extension(as an example)

            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