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 / C++ / MFC
  4. which module creates a specific file?

which module creates a specific file?

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 6 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.
  • J Offline
    J Offline
    Joseph Marzbani
    wrote on last edited by
    #1

    Hi every body! Is there any way/tool to find out which module creates a specific file? E.g one can see a process named Process.exe and this process has loaded a few DLL. What I want to know is which of theses DLLs creates a given file (e.g. C:\file.ext)

    Thank you masters!

    G S S L 4 Replies Last reply
    0
    • J Joseph Marzbani

      Hi every body! Is there any way/tool to find out which module creates a specific file? E.g one can see a process named Process.exe and this process has loaded a few DLL. What I want to know is which of theses DLLs creates a given file (e.g. C:\file.ext)

      Thank you masters!

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      unless you have the source code to the dll, I doubt it after the file has been created and closed. If the file is open, there are tools around that are the windows equivalent of the 'lsof' command - systinternals (now part of Microsoft) has a tool to display (iirc) open files vs the processes that have them open 'g' [edit] I was wondering if the file properties (custom) would be useful, but surely that depends on a well behaved application filling them out in the first place[/edit]

      J 1 Reply Last reply
      0
      • J Joseph Marzbani

        Hi every body! Is there any way/tool to find out which module creates a specific file? E.g one can see a process named Process.exe and this process has loaded a few DLL. What I want to know is which of theses DLLs creates a given file (e.g. C:\file.ext)

        Thank you masters!

        S Offline
        S Offline
        Selvam R
        wrote on last edited by
        #3

        Check with FileMon http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx[^]

        Thanks and Regards, Selvam, http://www.wincpp.com

        1 Reply Last reply
        0
        • G Garth J Lancaster

          unless you have the source code to the dll, I doubt it after the file has been created and closed. If the file is open, there are tools around that are the windows equivalent of the 'lsof' command - systinternals (now part of Microsoft) has a tool to display (iirc) open files vs the processes that have them open 'g' [edit] I was wondering if the file properties (custom) would be useful, but surely that depends on a well behaved application filling them out in the first place[/edit]

          J Offline
          J Offline
          Joseph Marzbani
          wrote on last edited by
          #4

          Thank you for your answer. I meant something like that I can examine a specific DIRECTORY or FOLDER so that I can catch every process that attamps to create or modifiy a file.

          Thank you masters!

          1 Reply Last reply
          0
          • J Joseph Marzbani

            Hi every body! Is there any way/tool to find out which module creates a specific file? E.g one can see a process named Process.exe and this process has loaded a few DLL. What I want to know is which of theses DLLs creates a given file (e.g. C:\file.ext)

            Thank you masters!

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            Further to R.selvam's answer - FileMon's been deprectaed - MS recommend you use ProcMon[^] now. That allows you to capture more than just file accesses, for example registry accesses as well.

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            1 Reply Last reply
            0
            • J Joseph Marzbani

              Hi every body! Is there any way/tool to find out which module creates a specific file? E.g one can see a process named Process.exe and this process has loaded a few DLL. What I want to know is which of theses DLLs creates a given file (e.g. C:\file.ext)

              Thank you masters!

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

              You don't need any tool, just use NAPI

              D 1 Reply Last reply
              0
              • L Lost User

                You don't need any tool, just use NAPI

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                If an API is not a tool, then please tell us what it is? :rolleyes:

                "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

                "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                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