Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Process Walking Posted by delphiasker on 2 Nov 2004 at 4:33 AM
How can I get the full path of the exe filenames ?
The szExeName property of PROCESSENTRY32 doesn't really show the full path but only the filename.

Report
Re: Process Walking Posted by zibadian on 2 Nov 2004 at 3:50 PM
: How can I get the full path of the exe filenames ?
: The szExeName property of PROCESSENTRY32 doesn't really show the full path but only the filename.
:
:
One way to get the full path is to use a iterative directory-tree-walk search using FindFirst(), FindNext(), and FindClose(). That's easy to code, but quite processor-heavy.
Report
Re: Process Walking Posted by Seri on 3 Nov 2004 at 6:25 AM
: : How can I get the full path of the exe filenames ?
: : The szExeName property of PROCESSENTRY32 doesn't really show the full path but only the filename.
: :
: :
: One way to get the full path is to use a iterative directory-tree-walk search using FindFirst(), FindNext(), and FindClose(). That's easy to code, but quite processor-heavy.
:
Yep it is far too heavy I think, is there any other way ?
Report
Re: Process Walking Posted by zibadian on 11 Nov 2004 at 3:00 AM
: : : How can I get the full path of the exe filenames ?
: : : The szExeName property of PROCESSENTRY32 doesn't really show the full path but only the filename.
: : :
: : :
: : One way to get the full path is to use a iterative directory-tree-walk search using FindFirst(), FindNext(), and FindClose(). That's easy to code, but quite processor-heavy.
: :
: Yep it is far too heavy I think, is there any other way ?
:
You can try the ExpandFilePath().
Report
Re: Process Walking Posted by erikkdr on 11 Nov 2004 at 2:09 AM
: How can I get the full path of the exe filenames ?
: The szExeName property of PROCESSENTRY32 doesn't really show the full path but only the filename.
:
:
Hello!

You can use following rows to extract it.

var path: String;
begin
path := ExtractFilePath(application.Exname);
end;


Report
Re: Process Walking Posted by zibadian on 11 Nov 2004 at 2:59 AM
: : How can I get the full path of the exe filenames ?
: : The szExeName property of PROCESSENTRY32 doesn't really show the full path but only the filename.
: :
: :
: Hello!
:
: You can use following rows to extract it.
:
: var path: String;
: begin
: path := ExtractFilePath(application.Exname);
: end;
:
:
:
That code does not give the path of the szExeName property, but only the path of the application, which is not necessarily the same application in the PROCESSENTRY32 record.



 

Recent Jobs