How can I get a list of all open named pipes in Windows?

Is there an easy way to test whether your named pipe is working correctly? I want to make sure that the data I'm sending from my app is actually being sent. Is there a quick and easy way to get a list of all the named pipes?

Answers


You can view these with Process Explorer from sysinternals. Use the "Find -> Find Handle or DLL..." option and enter the pattern "\Device\NamedPipe\". It will show you which processes have which pipes open.


Try the following instead:

String[] listOfPipes = System.IO.Directory.GetFiles(@"\\.\pipe\");

In the Windows Powershell console, type

[System.IO.Directory]::GetFiles("\\.\\pipe\\")


If your OS version is greater than Windows 7, you can also type

get-childitem \\.\pipe\

Use pipelist.exe from Sysinternals.


C#:

String[] listOfPipes = System.IO.Directory.GetFiles(@"\\.\pipe\");

I stumbled across a feature in Chrome that will list out all open named pipes by navigating to "file://.//pipe//"

Since I can't seem to find any reference to this and it has been very helpful to me, I thought I might share.


The second pipe was interpreted by this web site when submitted... You need two backslashes at the beginning. So make sure to use System.IO.Directory.GetFiles(@"\\.\pipe\").

Note that I have seen this function call throw an 'illegal characters in path.' exception when one of the pipes on my machine had invalid characters. PipleList.exe worked ok though, so it seems like a bug in MS's .net code.


Need Your Help

Gmail wraps certain HTML elements in a class called im

html gmail

I have been testing out an HTML e-mail process I've created recently. But as of lately, when I open the e-mail in Gmail, I'm noticing that certain elements are wrapped in a class that I know I did...

The requested URL /about was not found on this server

wordpress .htaccess wordpress-theming

The home page of my wordpress website seems to be displaying correctly but if you click through to any of the other pages I get the following error message: