Reputation: 4596
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
Reputation: 31599
As noted in comment
import os
arr = os.listdir('\\\\.\\pipe')
print (arr)
Upvotes: 5