Home > database >  The process of image file path pb?
The process of image file path pb?

Time:09-22

As title, demand is to obtain the complete image path, is containing the full path and parameter information, the process name and command line

For example, a process of image path is this: "C: \ Program Files \ Sybase \ 9.0 \ PB90 original concept EXE"/workspace C: \ Documents and Settings \ Administrator \ \ API \ API desktop PBW

CodePudding user response:

There are two ways, one is through Win32API, the other one is from Run (" wmic process get commandline> C: t.t xt ") and analysis of the text

CodePudding user response:

reference 1st floor response:
there are two ways, one is through Win32API, the other one is from Run (" wmic process get commandline> C: t.t xt) to analyze the text "


I know a way through the API, I can now take the names to the process and the command line, but take less than the image path, don't know to use the API function, know bother told!

CodePudding user response:

The FUNCTION ulong GetModuleFileName (ulong hModule, ref string lpFileName, ulong nSize) LIBRARY "kernel32. DLL" ALIAS FOR "GetModuleFileNameA"
  • Related