It sounds like you are describing your own code within another process. I
don't know of a way to do this. If you are able to get the directory from an
environment variable, then why do you need to get into the other process?
> Hi everyone.
>
[quoted text clipped - 16 lines]
> Thanks,
> Qu.
On Apr 28, 12:47 pm, Family Tree Mike
<FamilyTreeM...@discussions.microsoft.com> wrote:
> It sounds like you are describing your own code within another process. I
> don't know of a way to do this. If you are able to get the directory from an
[quoted text clipped - 22 lines]
>
> - Show quoted text -
I don't need to get into the other process. All I need is that one
environment variable (which happends to be a directory path, which can
vary depending on how the user opened the external application).
That's all I need.
The only way I know how to retrive Environment Variables, however, is
via Environment.GetEnvironmentVariable()... which only works if the
program containing the variable has focus.
Sorry I didn't explain it well enough first time around.