Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am following Interaction between services and applications at user level in Windows Vista[^] article to interact application of session 1 using windows service.

My problem is that How I will pass application exe path dynamically? not like C:\Program Files\...\MyApp.exe. Is it possible to find the path of user's application in windows service?

thank you all,

additional information copied from comment below
I do not need to get windows service's path whereas I require to find the exe's path of any application by name or any other manner.
Posted
Updated 8-Oct-13 6:49am
v2

I recommend you to post in the message board at the bottom of the article. If you do so the autor will receive a notification about your query. Probably he is the one that can help you best.

You can check http://stackoverflow.com/questions/199961/getting-full-path-for-windows-service[^] as well. It might help
 
Share this answer
 
Comments
rajesh@1989 8-Oct-13 8:57am    
Hi Nelek,

I already post this question to message board due to there is no reply from him. So, I posted this question here.

and thank you for your provided link but I do not need to get windows service's path whereas I require to find the exe's path of any application by name or any other manner.
Nelek 8-Oct-13 12:51pm    
Sorry then, but that's what I understood from your question. The other option is to go through the whole HD scanning all folders checking if you find the name you need, then get the current path when you find it.
I would probably have every application register with the service (provided you control these applications) and then save it's full path at the service. If you don't control the other application then you need to decide exactly what the requirements are for you to need this application and scan probably the whole hard drive for .exe files.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900