Results 1 to 22 of 22

Thread: [RESOLVED] How can I know the absolute path of a running process?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Resolved [RESOLVED] How can I know the absolute path of a running process?

    How can I know the absolute path of a running process?
    my simple ignore some process !
    smss.exe
    csrss.exe
    audiodg.exe

    Name:  05-26-14_23-42-05.jpg
Views: 1162
Size:  46.4 KB

    Thank You
    Attached Files Attached Files
    Last edited by Noob13; May 27th, 2014 at 02:26 PM.

  2. #2
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: How can I know the absolute path of a running process?

    Right click Project1.exe and select Run as admin from the context menu


    Please remove Project1.exe file from your attachment, this is violate forum rules!



  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Re: How can I know the absolute path of a running process?

    thank you
    Project1.exe removed

    yes with administrator privileges its still ignore some process !

  4. #4
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: How can I know the absolute path of a running process?


  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Re: How can I know the absolute path of a running process?

    its same can`t display path
    I think my problem in "user Name"
    take a look
    Name:  05-28-14_01-28-28.jpg
Views: 654
Size:  17.4 KB
    what should I do with my project to read it ?

  6. #6
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: How can I know the absolute path of a running process?

    Interesting, I am getting a path of 'null' in your loop for those entries you can't see.
    Researching......

  7. #7
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: How can I know the absolute path of a running process?

    You wrote: "I think my problem in "user Name""

    I don't think so....in running your project, I see other processes with the same User Names (SYSTEM, LOCAL SERVICE) and they DO show the path.

    EDIT----I mean, I see the PATHS and USER NAMES in the task manager, not your program.....
    Last edited by SamOscarBrown; May 27th, 2014 at 07:50 PM.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Re: How can I know the absolute path of a running process?

    ok but why can`t show path for :
    smss.exe
    csrss.exe
    audiodg.exe

  9. #9
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: How can I know the absolute path of a running process?

    Still researching....you are not alone.

  10. #10
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: How can I know the absolute path of a running process?

    The code from the link I posted above does show the path for smss.exe

    512 \SystemRoot\System32\smss.exe
    It does not show csrss.exe at all even though that is a running process on my system and the other one you mention is not showing up under task manager processes

  11. #11
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: How can I know the absolute path of a running process?

    That code at that link does not show csrss.exe on my system (Win7) either (which IS in TaskManager), however, as smss.exe is NOT running my TaskManager, I am not seeing it using that code in that link (of course). So, there must be SOMETHING about csrss.exe that is causing neither of those two attempts to 'trap' its location (and HOPEFULLY, any csrss.exe (all lower case) running on your systems are located in the System32 directory, otherwise, pretty darn good chance you have a virus masquerading as csrss.exe (Also, if you have one in ALL CAPS, probably a virus as well).

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Re: How can I know the absolute path of a running process?

    Thank You
    I use win8.1 x64
    I didn't show csrss.exe in Process TaskManager but in Details I can show it
    Name:  05-28-14_18-37-13.jpg
Views: 881
Size:  59.9 KB

  13. #13
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: How can I know the absolute path of a running process?

    I'm using XP on this box so no details tab

  14. #14
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: How can I know the absolute path of a running process?

    Not sure if the last post with code would work for those process.
    http://www.vbforums.com/showthread.p...of-running-Exe

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Re: How can I know the absolute path of a running process?

    Quote Originally Posted by Max187Boucher View Post
    Not sure if the last post with code would work for those process.
    http://www.vbforums.com/showthread.p...of-running-Exe
    nope, I got only 22 running process my all process is 72
    just I need return full path for all process wherever it is

  16. #16
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: How can I know the absolute path of a running process?

    Ran across this year old thread....didn't see if the project was the same or not, but supposedly it makes a task-manager type program...you might wanna check to see if it will list ALL processes.

    http://www.vbforums.com/showthread.p...of-application

  17. #17

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Re: How can I know the absolute path of a running process?

    Quote Originally Posted by SamOscarBrown View Post
    Ran across this year old thread....didn't see if the project was the same or not, but supposedly it makes a task-manager type program...you might wanna check to see if it will list ALL processes.

    http://www.vbforums.com/showthread.p...of-application
    Thank you
    Name:  05-29-14_15-57-14.jpg
Views: 773
Size:  48.8 KB
    I want show full path for [system]

  18. #18
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: How can I know the absolute path of a running process?

    Well, in that case, what I would do is after you run that code, do a "file search" for any executable that shows "SYSTEM", then replace "SYSTEM" with the path you found. You know how to search directories, YES?

    ie

    IF Path = "SYSTEM" then
    'do file search with NAME returning its path
    'update your textbox/grid/whatever you are using with the path where you have "SYSTEM"
    end if

    Its a workaround but it should work (around~smile~).

  19. #19
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: How can I know the absolute path of a running process?

    ...or on your original code, whereever your path was NULL, trap the exe name, and do the file search there, replacing the NULL with the path.

  20. #20
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: How can I know the absolute path of a running process?

    What legitimate reason is there for trying to get access to protected system processes anyway?

    Frankly I wish Microsoft had extended this Process Integrity mechanism to make it easier to isolate applications from tampering and hijacking, but they realized malware would just end up trying to exploit it as a defense against antivirus software. At least we have windowless controls and several other anti-hijack techniques we can use to fend off window spelunkers though.

    Since audiodg.exe plays a major role in audio DRM in Windows and csrss.exe mediates process creation and shields the kernel I find this thread doubly suspicious.

  21. #21
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: How can I know the absolute path of a running process?

    There are some system files that doesn't reveal their location and can't be closed using the Task Manager, doing so could cause a BSOD. They are all part of various subsystems and security of the OS. I would just list them as SYSTEM, however they all reside in the System32 folder.

  22. #22

    Thread Starter
    Addicted Member
    Join Date
    Nov 2010
    Posts
    159

    Re: How can I know the absolute path of a running process?

    Ok, Thank you very much everybody
    Now I know the reason ,I`ll give it system path
    really you are great

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width