Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 89
  • Last Modified:

remote app folder path

I'm developing an application that monitors the remote execution of another application and need to get the full path folder where such application is stored.

what would be the best way to get that info?
0
leorocha
Asked:
leorocha
  • 4
  • 3
  • 3
1 Solution
 
ste5anSenior DeveloperCommented:
0
 
FarWestCommented:
do you have the source of the remote application?
0
 
leorochaAuthor Commented:
fryezz, nope
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
leorochaAuthor Commented:
ste5an, I can't use tha api, because I'm using a development tool that generates the source code. I only can type c# source code, can't attach any extra DLL.
0
 
ste5anSenior DeveloperCommented:
Well, you may take a look at WMI. There should be also a possibilty to qeuery the information,
0
 
FarWestCommented:
you can use shell command to execute task list on remote computer
put it in a string and locate your application

wmic /node: /output:d:\process.txt process get description,executablepath

and check this url to call it remotely
http://www.petri.com/command-line-wmi-part-2.htm
0
 
leorochaAuthor Commented:
I've solved this issue using "MainModule.FileName" from System.Diagnostics.Process class.

Thanks all of you
0
 
FarWestCommented:
are both applications will run one same computer, where is remote in this case?
0
 
leorochaAuthor Commented:
I've solved by myself
0
 
ste5anSenior DeveloperCommented:
Can you explain how this solves your problem?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now