Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Name of Parent Process

Aug
1,965
71
I've added this variable definition to my TCStart.btm file;
Code:
set _ppname=%@word[1,%{0,enumprocesses %_ppid}]

This will give me the name of the parent process of the TCC.EXE from which I am currently in.

I can now see from which process the current TCC.EXE was launched;
  • conhost.exe
  • openconsole.exe
  • powershell.exe
  • explorer.exe
etc.

Joe

Ref: Enumprocesses
Ref: What's New In Version 21
 
Indeed.
Code:
set _ppname=%@word["\",-0,%_parent]
or
Code:
set _ppname=%@filename[%_parent]

Thanks @Charles Dye

Joe
 
Back
Top