bzm3r
bzm3r

Reputation: 4596

Getting a list of named pipes on Windows using win32api?

You could get your users to install the pipelist utility, and then process the output of:

subprocess.check_output("pipelist", universal_newlines=True)

Using C#, one can also do something like this:

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

Is there a way to replicate this C# solution using pywin32/win32api?

Upvotes: 3

Views: 1478

Answers (1)

Barmak Shemirani
Barmak Shemirani

Reputation: 31599

As noted in comment

import os
arr = os.listdir('\\\\.\\pipe')
print (arr)

Upvotes: 5

Related Questions