forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Full path to a running process?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Thu Feb 03, 2005 1:47 pm    Post subject: Full path to a running process? Reply with quote

Hi all, it's been a while since I asked a question. Smile 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
View user's profile Send private message Send e-mail Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Feb 03, 2005 3:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Feb 03, 2005 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Feb 03, 2005 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Thu Feb 03, 2005 7:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Thu Feb 03, 2005 7:20 pm    Post subject: Reply with quote

Nevermind. It works! Thanks a bunch! I didn't even see that. Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Feb 03, 2005 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Feb 03, 2005 10:09 pm    Post subject: Reply with quote

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!!! Rolling Eyes Embarassed

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group