Show pipes in CMD
-
Main question: Is is possible to display all pipes in the terminal (cmd.exe)? I have tried running this command:
dir \\.\pipe\
But it only say I use the wrong parameter. I would like to avoid writing an application for this due to the customer's computer must if so downloaded my application and are in need of an internet connection. I would also like to avoid using Process Explorer or other similar application for the same reason. An application that comes with Windows by default would be suffice. Additional question: Where are the pipes on a computer stored? In the Window's registry? For instance if I run this code snippet in C#:
foreach (string pipe in System.IO.Directory.GetFiles(@"\\.\pipe\"))
{
Console.WriteLine(pipe);
}I get a list of all pipes on the computer. But from where are the list of pipes stored on the computer? Where does the C#-compiler look for pipes based on the \\.\pipe\ syntax? Best regards, /Steffe
-
Main question: Is is possible to display all pipes in the terminal (cmd.exe)? I have tried running this command:
dir \\.\pipe\
But it only say I use the wrong parameter. I would like to avoid writing an application for this due to the customer's computer must if so downloaded my application and are in need of an internet connection. I would also like to avoid using Process Explorer or other similar application for the same reason. An application that comes with Windows by default would be suffice. Additional question: Where are the pipes on a computer stored? In the Window's registry? For instance if I run this code snippet in C#:
foreach (string pipe in System.IO.Directory.GetFiles(@"\\.\pipe\"))
{
Console.WriteLine(pipe);
}I get a list of all pipes on the computer. But from where are the list of pipes stored on the computer? Where does the C#-compiler look for pipes based on the \\.\pipe\ syntax? Best regards, /Steffe
Several options listed in this SO thread[^]:
- Use the Sysinternals Pipelist[^] utility;
- Use Powershell: [System.IO.Directory]::GetFiles("\\.\\pipe\\")
- Use Powershell v3: get-childitem \\.\pipe\
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Several options listed in this SO thread[^]:
- Use the Sysinternals Pipelist[^] utility;
- Use Powershell: [System.IO.Directory]::GetFiles("\\.\\pipe\\")
- Use Powershell v3: get-childitem \\.\pipe\
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Thanks. But all of those solution requires a separate application in some way. I would like a solution without need of any separate application. /Steffe
There is no way to show the pipes using the standard commands you find in the CMD prompt.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
There is no way to show the pipes using the standard commands you find in the CMD prompt.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak