Solved

remote app folder path

Posted on 2014-11-24
10
73 Views
Last Modified: 2014-12-01
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
Comment
Question by:leorocha
  • 4
  • 3
  • 3
10 Comments
 
LVL 32

Expert Comment

by:Stefan Hoffmann
Comment Utility
0
 
LVL 12

Expert Comment

by:FarWest
Comment Utility
do you have the source of the remote application?
0
 

Author Comment

by:leorocha
Comment Utility
fryezz, nope
0
 

Author Comment

by:leorocha
Comment Utility
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
 
LVL 32

Expert Comment

by:Stefan Hoffmann
Comment Utility
Well, you may take a look at WMI. There should be also a possibilty to qeuery the information,
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 12

Expert Comment

by:FarWest
Comment Utility
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
 

Accepted Solution

by:
leorocha earned 0 total points
Comment Utility
I've solved this issue using "MainModule.FileName" from System.Diagnostics.Process class.

Thanks all of you
0
 
LVL 12

Expert Comment

by:FarWest
Comment Utility
are both applications will run one same computer, where is remote in this case?
0
 

Author Closing Comment

by:leorocha
Comment Utility
I've solved by myself
0
 
LVL 32

Expert Comment

by:Stefan Hoffmann
Comment Utility
Can you explain how this solves your problem?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now