i want to find location of a process. how?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Mohammad_Dos
Posts: 84
Joined: 08 Sep 2010 10:25
Location: Iran,Kashan
Contact:

i want to find location of a process. how?

#1 Post by Mohammad_Dos » 15 Mar 2012 13:06

how to find out location of a file witch is running and I can see it in processes?

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: i want to find location of a process. how?

#2 Post by aGerman » 15 Mar 2012 17:54

You could use WMIC.

Code: Select all

for /f "skip=1 tokens=*" %%i in ('wmic process where name^="firefox.exe" get ExecutablePath') do echo %%~dpi

Regards
aGerman

Post Reply