Information about the process that called an application

  • Thread starter Thread starter Piotrekk
  • Start date Start date
P

Piotrekk

Hi

Basically i need to get an information about the process that started
my console app.

For example: cmd.exe -> myApp.exe

I need to get current directory in cmd.exe when myApp.exe is called.

Thanks
PK
 
Piotrekk,

Assuming that there is nothing that has set the CurrentProperty property
of the Environment class, you should be able to get the directory the EXE
was launched from there.
 
Thanks :-)

I thought that it would be much harder when i add directory where my
program is to System variables and call my program from other
directory :-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top