| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Thu Feb 03, 2005 1:47 pm Post subject: Full path to a running process? |
|
|
Hi all, it's been a while since I asked a question. How can I find the full path (to the exe) of a running process/task? Thanks a lot! _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Feb 03, 2005 3:07 pm Post subject: |
|
|
LIST MODULES, x, <task>
The first item in the list returned is the path to <task>. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 03, 2005 3:28 pm Post subject: |
|
|
If I remember right, you only get the full path while using under a
Windows 9x/ME system. NT based systems only return the exe name
and no path information.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Feb 03, 2005 4:20 pm Post subject: |
|
|
That can't be right. My VDS anti-virus uses this to get the paths to all the running processes and the modules they have loaded, so it can do a memory scan. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Thu Feb 03, 2005 7:17 pm Post subject: |
|
|
Humm. It doesn't list the full path for me, just the exe name. Any other ideas? I am running Win XP home sp2 _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Thu Feb 03, 2005 7:20 pm Post subject: |
|
|
Nevermind. It works! Thanks a bunch! I didn't even see that.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 03, 2005 10:00 pm Post subject: |
|
|
Hmmm, didn't work for me months and months ago... Guess I'd better
try it again. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 03, 2005 10:09 pm Post subject: |
|
|
Ummm, ok, I guess you have to use the LIST MODULES when running on a
NT system. On 9x systems, you don't have to because the LIST TASKLIST
uses the full paths for the entries in the list.
Well, that explains why a program I was trying to make for the last few
years wasn't going to work!!!  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|