Welcome!

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

SignUp Now!

TPIPE output to tmp9:

Aug
2,799
144
This works;

Code:
E:\Utils>pshell /s "$PSVersionTable" | tpipe /simple=11
Name                           Value
----                           -----
PSVersion                      5.1.19041.7181
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.7181
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

This also works;

Code:
E:\Utils>pshell /s "$PSVersionTable" | tpipe /simple=11 /output=r:\results.txt

E:\Utils>type r:\results.txt
Name                           Value
----                           -----
PSVersion                      5.1.19041.7181
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.7181
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

This also also works;

Code:
E:\Utils>pshell /s "$PSVersionTable" | tpipe /simple=11 /output=clip:

E:\Utils>type clip:
Name                           Value
----                           -----
PSVersion                      5.1.19041.7181
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.7181
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

This does not work;

Code:
E:\Utils>tmp /c tmp9: & pshell /s "$PSVersionTable" | tpipe /simple=11 /output=tmp9:

type tmp9:

From the help file;

/output=filename

Filename to write. This can be either a disk file or CLIP:. If it is not specified, TPIPE will write to standard output.

The output filename can also be any of the CLIPn: or TMPn: pseudo-devices.

Can anyone else duplicate this?

Joe

Code:
E:\Utils>whatver
     _x64: 1
   _admin: 1
_elevated: 1

TCC  36.00.42 x64   Windows 10 [Version 10.0.19045.7184]
BuildNumber  Caption                   CSDVersion  OSArchitecture  Version
19045        Microsoft Windows 10 Pro              64-bit          10.0.19045

22H2
 
TPIPE output to CLIPn: and TMPn: do work. What's wrong is your expectation that CLIPn: and TMPn: are the same in all TCC sessions.

CLIPn: and TMPn: are specific to the current TCC session. You are piping to another TCC session, where TMP9: is set as expected, and then you exit the child pipe session and TMP9: reverts to the parent's value (i.e., empty).

If you want to use CLIPn: and TMPn: as output, you should use DOS pipes (i.e., "|!").
 
Back
Top