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

Detect Windows Terminal

$
0
0
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  26.02.42 x64   Windows 10 [Version 10.0.18363.959]

1597886077939.png

Here's my method of determining if I am running TCC.EXE from Windows Terminal;
Code:
function WinTerm=`%@execstr[echo %@pidcommand[%_ppid] |! ffind /t"WindowsTerminal" > nul & echo %_ffind_matches]`

1597886026253.png

Joe

Edit: Corrected function, which should have been wrapped in @execstr
Edit: Used _ppid per suggestion by Vince

Viewing all articles
Browse latest Browse all 1682

Trending Articles