@PSHELL?

May 20, 2008
12,176
133
Syracuse, NY, USA
Both of these work at a Powershell prompt.

Code:
V:\> (get-item .\timecheck.btm).length
1446

V:\> (get-item .\timecheck.btm:nist.txt).length
853

Only one of these works at a TCC prompt.

Code:
v:\> echo %@pshell[(get-item .\timecheck.btm).length]
1446

v:\> echo %@pshell[(get-item .\timecheck.btm:nist.txt).length]
ECHO is OFF

Any ideas?
 
May 20, 2008
12,176
133
Syracuse, NY, USA
In my previous post I was using TCC v27. It's better in v26.

Code:
v:\> *ver

TCC  26.02.43 x64   Windows 10 [Version 10.0.19042.685]

v:\> echo %@pshell[(get-item .\timecheck.btm).length]
1446

v:\> echo %@pshell[(get-item .\timecheck.btm:nist.txt).length]
853
 
Aug 9, 2009
293
1
Sadly my eval tcc27 expired weeks ago. At the time I had to use a piped echo to remove the "unknown command"
as for streams tcc hasn't been able to report on stream name properties at all
 

rconn

Administrator
Staff member
May 14, 2008
12,557
167
All of the Powershell integration is handled by NSILP_PowerShell.x64.dll (which hasn't changed between v26 & v27).

The only difference in the TCC code for Powershell between v26 & v27 is if you've defined a custom profile ID (PowerShellProfileID=xxxx). Otherwise, v26 & v27 are identical.
 

Similar threads