是否可以在Windows中使用命令行打开命名管道?

Ala*_*lan 14 windows named-pipes

我想手动与管道进行交互,但到目前为止我只能在程序中执行此操作,这不是很直观.

我想要达到的效果有点类似于:

telnet localhost 3306

tail -f file.txt
Run Code Online (Sandbox Code Playgroud)

谁有我的想法?

Dmi*_*try 5

请看这里:http://support.microsoft.com/kb/68941

SQL Server附带了两个实用程序,旨在帮助测试网络命名管道.在安装客户端和服务器组件期间安装MakePipe.exe和ReadPipe.exe实用程序


mav*_*ana 5

来自 PowerShell

PS>$pipe = New-Object System.IO.Pipes.NamedPipeServerStream("DummyPipe", "InOut")

PS>Get-ChildItem -Path "\\.\pipe\" -Filter *DummyPipe*
Run Code Online (Sandbox Code Playgroud)

更多解释: https ://decoder.cloud/2019/03/06/windows-named-pipes-impersonation/


rog*_*ack 0

cygwin 可能有您可以使用的命名管道。另请参阅如何从 Java 打开 Windows 命名管道?