Welcome!

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

SignUp Now!

PShell tccvar Help

Aug
2,799
144
1775584661590.webp


The % sign causes nothing to be displayed.

Code:
R:\>pshell /s "tccvar '%_pid'"

R:\>pshell /s "tccvar '_pid'"
107856

Ref: PSHELL - Execute a PowerShell script or string

Joe
 
Well, it does work, but only from within a .ps1 file;

Code:
R:\>ver

TCC  36.00.19 x64   Windows 10 [Version 10.0.19045.7058]
R:\>pshell test.ps1
107856

R:\>type test.ps1
tccvar '%_pid'

Joe
 
Back
Top