Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

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

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.