How can I determine a cmd.exe's parent process.
- by René Nyffenegger
Sometimes I find myself in a cmd.exe environment that itself was started
by another cmd.exe or by another console-based application. Now, working
in such an environment, I'd like to know what happens if I type exit,
that is, if the cmd.exe window will disappear, or if it goes back to the
creating cmd.exe or application. This, of course, because sometimes as
I work in cmd.exe I am forgetful about how I called it.
So, is there a way to find out the parent process (if this is the correct
terminus for what I mean) of a cmd.exe within cmd.exe?