Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1683

Name of Parent Process

$
0
0
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

Viewing all articles
Browse latest Browse all 1683

Trending Articles