Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Show pipes in CMD

Show pipes in CMD

Scheduled Pinned Locked Moved Windows API
questioncsharpwindows-adminsales
5 Posts 3 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mc_Topaz
    wrote on last edited by
    #1

    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

    Richard DeemingR 1 Reply Last reply
    0
    • M Mc_Topaz

      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

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      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

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      M 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        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

        M Offline
        M Offline
        Mc_Topaz
        wrote on last edited by
        #3

        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

        D 1 Reply Last reply
        0
        • M Mc_Topaz

          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

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • D 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

            M Offline
            M Offline
            Mc_Topaz
            wrote on last edited by
            #5

            Ok, too bad. Thanks anyway.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups