Jump to content
Sign in to follow this  
slayerz

Is it possible?

Recommended Posts

slayerz

Hello everyone! I'm juz wondering, is it possible to get the location of file through its process name?

Let say I run task manager, so the process taskmgr.exe will exist. So, I want to make a script that can retrieve the location of that file using its process name.

As a result, my script will return the result like this : C:\Windows\System32\taskmgr.exe

Thanks!


AUTOIT[sup] I'm lovin' it![/sup]

Share this post


Link to post
Share on other sites
PsaltyDS

Hello everyone! I'm juz wondering, is it possible to get the location of file through its process name?

Let say I run task manager, so the process taskmgr.exe will exist. So, I want to make a script that can retrieve the location of that file using its process name.

As a result, my script will return the result like this : C:\Windows\System32\taskmgr.exe

Thanks!

There was a UDF called _ProcessListProperties(), posted by a particular rakishly good looking antarctic water fowl...

:)

Provides the path to the executable in element [n][5] of the returned array.

^_^


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
schilbiz

There was a UDF called _ProcessListProperties(), posted by a particular rakishly good looking antarctic water fowl...

:)

Provides the path to the executable in element [n][5] of the returned array.

:)

Hmmm.. let me guess you are talking about the Imperial Cormorant??

^_^

Share this post


Link to post
Share on other sites
PsaltyDS

Hmmm.. let me guess you are talking about the Imperial Cormorant??

^_^

Hrumph!

Those upstart little boobies couldn't code their way out of a wet paper For/Next loop!

Cormorant, indeed!

Hrumph, I say!

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
PsaltyDS

Probable results, that bird never had a chance...

True, but you got the wrong bird: Baked glazed Cormorant, anyone?

Posted Image


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
schilbiz

Atleast people eat cormorant, even vultures won't touch a penguin.

Posted Image

Share this post


Link to post
Share on other sites
BAM5

You just haaaaaaaaadd to go there didn't you?

Atleast people eat cormorant, even vultures won't touch a penguin.

Posted Image


[center]JSON Encoding UDF[/center]

Share this post


Link to post
Share on other sites
slayerz

Thanks to PsaltyDS for ur reply.

....and here we have so many bird's pic!=p


AUTOIT[sup] I'm lovin' it![/sup]

Share this post


Link to post
Share on other sites
PsaltyDS

Thanks to PsaltyDS for ur reply.

....and here we have so many bird's pic!=p

Glad it helped.

Sorry to hijack your topic with a dumb joke... BUT I DIDN'T START IT!

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.